How to show different product module on category

  • Posts: 6
  • Thank you received: 0
13 years 1 week ago #30121

I only want the product module on the shop homepage with all the categories to have 1 row showing 3 at a time (as it is currently).

However, I cannot figure out (after trying many angles) how to change the module on each category listing page to have 4 rows (so I can see 12 products at a time). It seems that the module settings carry over from the shop home.

What can I do to achieve the layout I want?














Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #30152

The first screenshot is the screenshot of your category listing. For the products listing module's options you should click on the link your circled in red. On that screen you will find the options related to the products listing and you will be able to set it to 4 columns and 3 rows.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
13 years 1 week ago #30243

nicolas wrote:

The first screenshot is the screenshot of your category listing. For the products listing module's options you should click on the link your circled in red. On that screen you will find the options related to the products listing and you will be able to set it to 4 columns and 3 rows.


Yes, I know this (and its 3 columns and 4 rows - not 4 columns and 3 rows). However, if I change it to 3 columns and 4 rows, then it will update these settings on ALL category pages. I only want 3 columns, 1 row for the shop home, but I want 3 columns and 4 rows for the category views.

How do I do this?

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #30247

That's not possible with the options as it's the same module which is used for both the main page and the sub pages.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
13 years 1 week ago #30249

That's not good.

This is very restrictive as it won't let me show a different number of products on different pages. :angry:

You should make it work like you did with the Filter boxes where you can assign what category the filter should show on.

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 1 week ago #30252

Sure but that's not the case for now...

You could always create several modules and associate all of them to the menu and then edit the file "listing" of the category view of the front end via the menu Display->Views and display or not the modules based on the current category.

That could be done by changing the line:
$html .= JModuleHelper::renderModule($module);

to something like that:

if(($this->element->category_id == XX && $module->id==YY) OR ($this->element->category_id == AA && $module->id==BB)){
$html .= JModuleHelper::renderModule($module);
}

so that the module YY would be used for category XX and the module BB would be used for the category AA.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
13 years 1 week ago #30258

Wow! Thanks! This works!

Yes, definitely would be a good idea to add in later. I hunted around for many hours trying to figure out how to make the carousel different from store home page to the category pages, so it would be nice to have that option some time in the future.

But this works for now! :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum