Post by Django29 » Thu Jun 21, 2018 4:13 pm

Hello
How can we display a different module (carousel or anything inside) for each products category ?

New member

Posts

Joined
Fri May 16, 2014 4:40 pm

Post by IP_CAM » Thu Jun 21, 2018 6:27 pm

Well, some Extensions for this seem to exist! ;)
Ernie
---
Different Carousels in Different Categories
https://www.opencart.com/index.php?rout ... n_id=26811
---
[OC-3.X] Banners By Category
https://www.opencart.com/index.php?rout ... n_id=31949
---
[OC-3.X] Slideshow by Category
https://www.opencart.com/index.php?rout ... n_id=32347
---
HTML Block By Category
https://www.opencart.com/index.php?rout ... n_id=26403
---
Home Bestsellers + Specials + Latest by Category
https://www.opencart.com/index.php?rout ... on_id=2659
---

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Django29 » Thu Jun 21, 2018 8:19 pm

I'm surprised OC can't do that natively.
I think most of the time, these modules must show elements in relation with the the product category displayed.

So I have once more to use ma credit card on the 20$ (minimum) shop.

Thanks for your answer.

New member

Posts

Joined
Fri May 16, 2014 4:40 pm

Post by Johnathan » Thu Jun 21, 2018 9:55 pm

OpenCart CAN do that natively. What you do is create the module instance, then create a new layout for it in Design > Layouts, and assign the module in there. After that, you set the category to use that layout in Catalog > Categories > Edit (in the "Design" tab). That category will then use that specific layout, which means it will only show modules attached to that layout.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Django29 » Thu Jun 21, 2018 10:37 pm

Thanks Jonathan
I will try this procedure.
But I have no idea what to put in the field Path, when we create a new layout.

New member

Posts

Joined
Fri May 16, 2014 4:40 pm

Post by Johnathan » Thu Jun 21, 2018 11:57 pm

If you're using it for a category override, you don't need to enter any route in the Layout. Just create it, and assign the modules to it. That way it won't control any actual pages, and will only control the categories/products that you assign it to.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 375 guests