Multiple category and product page designs

  • Posts: 228
  • Thank you received: 8
10 years 11 months ago #174127

-- HikaShop version -- : lates
-- Joomla version -- : 3.3.6

Hi.

I'm already using HikaShop essential for one of my projects and so far so good :)

I've got a new project in which the client would like to have several categories and product pages designs. The client has 6 products categories and each should have its own colors. This design will be inflicted on the associated products to this category.

Is this possible to do in HikaShop?

Thanks in advance,

Guy.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 11 months ago #174148

Hi,

See "Layout on product page" : www.hikashop.com/support/documentation/i...form.html#additional

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 228
  • Thank you received: 8
10 years 7 months ago #189857

Hello Jerome,

Thank you for your answer and sorry for the late response. I just started working on this project and I've found that the "Layout on product page" is not exactly what I was looking for. I would like to add something more close to Class Suffix for a category. So the category and the products in it will get some specific styling.

Already checked for such an option and it seems there's no such option. Though about adding my Class Suffix to the menu item as Page Class Suffix but there are ways to access the category not only from the menu item and in this cases the styling will be lost.

I can use JS to add the my classes according to categories ID but in this case, will the products inherit this styling?

Any other ideas please?

Thank you in advance,

Guy.

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 7 months ago #189902

Hi,

You can add JS to add the classes in the HTML. The products will inherit the styling if you write the styling properly to apply to the classes and that the classes are added where they should be added :)

Alternatively, you could edit the listing view files of the product/category views to add the classes in PHP since you already have the current category data in $this->element, and you could also edit the show file of the product view in order to add a class for each category of the product as the categories data of the current product is stored in $this->categories

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

  • Posts: 228
  • Thank you received: 8
10 years 7 months ago #189966

Thank you.
I'll go with the JS option.
BTW, I think it will be a great improvement to Hikashop if you integrate a Class Suffix field to your categories and products core. It's simple to implement and it will add super simple and strong flexible design options to Hikashop ;)

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 7 months ago #189985

Hi,

No need for a class suffix field. We'll simply directly add a class on the main div of those pages.
In fact, I just checked the code and there is already such class on listings if you use the latest version of HikaShop:
hikashop_category_listing_{id}
hikashop_product_listing_{id}
where id is the id of the current category.
We'll add the classes on the product page but since you can already have different layouts for the products it's already quite easy to do.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum