AndersHelbo Posted October 3, 2014 Share Posted October 3, 2014 Hi I'm looking for a way to display four blocks on the frontpage, where each block contains 6 products from each category. The frontpage is a one-column page. I was thinking if it is easy to make it myself or if anyone knows a free module for this task? Link to comment Share on other sites More sharing options...
vekia Posted October 3, 2014 Share Posted October 3, 2014 you can duplicate homefeatured module (duplicate it X times where X is number of category blocks yo uwant to display) and in each new version change category ID number in: $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); in this case id is defined in: Context::getContext()->shop->getCategory(), just use there ID of category instead of code i mentioned. 1 Link to comment Share on other sites More sharing options...
AndersHelbo Posted October 3, 2014 Author Share Posted October 3, 2014 On 10/3/2014 at 7:49 PM, vekia said: you can duplicate homefeatured module (duplicate it X times where X is number of category blocks yo uwant to display) and in each new version change category ID number in: $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); in this case id is defined in: Context::getContext()->shop->getCategory(), just use there ID of category instead of code i mentioned. Thanks I will try that Link to comment Share on other sites More sharing options...
AndersHelbo Posted October 6, 2014 Author Share Posted October 6, 2014 On 10/3/2014 at 7:49 PM, vekia said: you can duplicate homefeatured module (duplicate it X times where X is number of category blocks yo uwant to display) and in each new version change category ID number in: $category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id); in this case id is defined in: Context::getContext()->shop->getCategory(), just use there ID of category instead of code i mentioned. Hi I have tried to duplicate the module and renamed the copy, but how do I activate the copy in the backend? Cannot find it anywhere? Link to comment Share on other sites More sharing options...
rufein Posted October 28, 2014 Share Posted October 28, 2014 I've duplicate the module and I've modified the code to add as much categories as you want. Here the thread with the module: http://www.prestashop.com/forums/topic/373956-free-module-to-show-categorized-products-in-homepage/ 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