AndersHelbo Posted July 1, 2015 Share Posted July 1, 2015 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 More sharing options...
NemoPS Posted July 1, 2015 Share Posted July 1, 2015 Actually, there should be an option to randomize them in the back office. What's your presta version? Link to comment Share on other sites More sharing options...
AndersHelbo Posted July 1, 2015 Author Share Posted July 1, 2015 Actually, there should be an option to randomize them in the back office. What's your presta version? I'm using 1.6.0.13 Link to comment Share on other sites More sharing options...
NemoPS Posted July 3, 2015 Share Posted July 3, 2015 Yeah, in the bo, modules, featured products on the homepage Link to comment Share on other sites More sharing options...
AndersHelbo Posted July 3, 2015 Author Share Posted July 3, 2015 Yeah, in the bo, modules, featured products on the homepage Well I've tried that but it only shows marked products for the "home"-categori and not randomly from whole catalog? Link to comment Share on other sites More sharing options...
NemoPS Posted July 4, 2015 Share Posted July 4, 2015 Of course, featured products are only taken from that category Link to comment Share on other sites More sharing options...
AndersHelbo Posted July 4, 2015 Author Share Posted July 4, 2015 Of course, featured products are only taken from that category I Know But I'm searching for a module / hack so there will be showed random products on the frontpage of the webshop. Link to comment Share on other sites More sharing options...
NemoPS Posted July 4, 2015 Share Posted July 4, 2015 Oh, sorry I missed that part Well I think you should simply take the Category::getProducts method and remove the category = $this->id conditionYou can probably clone the homefeatured and do it there 1 Link to comment Share on other sites More sharing options...
AndersHelbo Posted July 4, 2015 Author Share Posted July 4, 2015 Oh, sorry I missed that part 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 More sharing options...
Krystian Podemski Posted July 4, 2015 Share Posted July 4, 2015 This is not a good idea to show random products from entire catalog, this will be slow as hell unless you create 1h cache or something like this. Link to comment Share on other sites More sharing options...
vekia Posted July 5, 2015 Share Posted July 5, 2015 new version of the homefeatured module contains option to display products randomly 1 Link to comment Share on other sites More sharing options...
NemoPS Posted July 6, 2015 Share Posted July 6, 2015 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 More sharing options...
Daniel Patilea Posted February 7, 2022 Share Posted February 7, 2022 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now