Category name in category listing for each product

  • Posts: 344
  • Thank you received: 3
  • Hikashop Business
4 months 3 days 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 ?

Tnx

Attachments:

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

  • Posts: 61836
  • Thank you received: 8793
  • MODERATOR
4 months 2 days ago #284827

Hi,

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:
www.hikashop.com/support/documentation/1...-display.html#layout

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:
www.hikashop.com/forum/install-update/86...product-listing.html

For the category name, it will require some coding though. Here is a thread about that:
www.hikashop.com/forum/product-category-...product-listing.html

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

Time to create page: 0.080 seconds
Powered by Kunena Forum