How to show the related categories for a product

  • Posts: 86
  • Thank you received: 3
11 years 1 week ago #99476

Greetings.
I am trying to find a way to show the related categories of a product.
IE: I am in the products page. I see the price, the product link, the number of items in stock, the add button and wishlist button.
Somewhere there, is there a way to have the related categories?

The purpose would be to help the end users to find their product by looking at the categories.
Let say I have 100 pictures of t-shirt. Each of them are taged under summer, winter, man, woman and sizes. I would like for them to go to product (or brands) and see on one page all product with their categories.
Not sure if there is a way to do this?

Thank you

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
11 years 1 week ago #99608

Hi,

You can override the product page view in order to add your PHP/HTML code.
In the view you can access to the product categories with:

$this->categories
It is an array of category objects.

This modification requires some PHP skills to be implemented but you would be able to display what you want.

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.

Time to create page: 0.060 seconds
Powered by Kunena Forum