Jump to content

Random products on homefeatured


AndersHelbo
 Share

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.

Share this post


Link to post
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

Share this post


Link to post
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 :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

  • 6 years later...

Hello!

I developed a module for random products on homepage that might help you, or other people looking for a similar functionality.

You can check it here.

It also has:

  • a special link which opens a random product page each time;
  • a dedicated page that displays random products on each page refresh.

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More