Jump to content

Products from each category on homepage


Recommended Posts

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.
 

  • Like 1
Link to comment
Share on other sites

  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 :D

Link to comment
Share on other sites

  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

  • 3 weeks 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...