Category name in category listing for each product

  • Posts: 344
  • Thank you received: 3
  • Hikashop Business
9 months 4 weeks ago #284824

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.2
-- PHP version -- : 7

In the category listing I want to make two adjustments.

Please see encloused image.

I want to leave the product name as it is(below product image)

1. I have created a custom field in table "product" with label "short_description" which I want to place below the product name in the category listing.

2. I want to display the name of the category which product is placed in below the new "short description"

Any advice on what file I need to modify ?



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

  • Posts: 63594
  • Thank you received: 9159
9 months 4 weeks ago #284827


You don't need to ask us anymore what file you need to change. Please use the "Display view files" setting of the HikaShop configuration to search for that yourself:

In fact, you don't even need to edit any code to display a custom product field on a listing. Just turn on the products listing display setting of your custom field and it should work automatically. If it doesn't, either you didn't enter anything in the custom field in that product, or you have a view override from an old version of HikaShop which doesn't contain the code to display custom product fields. But even in that case, it's quite easy to add:

For the category name, it will require some coding though. Here is a thread about that:

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

Time to create page: 0.083 seconds
Powered by Kunena Forum