Display description of sub-categories in the product list page

  • Posts: 56
  • Thank you received: 5
  • Hikaserial Standard Hikashop Business
1 year 4 months ago #349118

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 4
-- PHP version -- : 8

Hello,

Is it possible to display the description of the sub-categories of products in a "list of products" page

For the moment, I have only managed to display the photo and the description of the main category, the products are well grouped by subcategory but without the description of the latter.


thanks in advance


Nicolas

,

Attachments:

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

  • Posts: 81876
  • Thank you received: 13145
  • MODERATOR
1 year 4 months ago #349120

Hi,

There is no option for that.
However, it should be relatively easy to add. Go in the menu Display>Views, edit the view file product / listing, and in there, the sub category name is displayed with this line:

<h2><?php echo $category['category']->category_name; ?></h2>
So you could add this code after it to add the description:
<div class="subcategory_description"><?php echo $category['category']->category_description; ?></div>

The following user(s) said Thank You: NJWEB

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

  • Posts: 56
  • Thank you received: 5
  • Hikaserial Standard Hikashop Business
1 year 4 months ago #349135

merci :)

The following user(s) said Thank You: Philip

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

Time to create page: 0.067 seconds
Powered by Kunena Forum