Jump to content

Random products on homefeatured


AndersHelbo

Recommended Posts

Hi

 

I'm running the danish webshop, Kontorgruppen.dk.

 

On the frontpage I would like a function where homefeatured module is added, but the products should be showed random so I do not have to add them to the home-category myself.

 

Is there any way that I can get the module to choose the products automatically?

 

Thanks.

Link to comment
Share on other sites

Oh, sorry I missed that part :D
Well I think you should simply take the Category::getProducts method and remove the category = $this->id condition
You can probably clone the homefeatured and do it there

  • Like 1
Link to comment
Share on other sites

Oh, sorry I missed that part :D

Well I think you should simply take the Category::getProducts method and remove the category = $this->id condition

You can probably clone the homefeatured and do it there

Thanks Nemo1. I will try your suggestion :)

Link to comment
Share on other sites

Actually, there should be an option to randomize them in the back office. What's your presta version?

 

new version of the homefeatured module contains option to display products randomly

 

As I actually said before.

 

He needs them from the whole catalog

Link to comment
Share on other sites

  • 6 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...