Description sub-categories

  • Posts: 386
  • Thank you received: 7
  • Hikashop Business
2 years 10 months ago #333318

-- url of the page with the problem -- : www.halaltime.eu/broodjes-corner

Hello,

How can we get the description of the sub-categories to show?
We have the menu items on "grouped by category"
See attachment:



Regards,
Michiel

Attachments:

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

  • Posts: 4508
  • Thank you received: 610
  • MODERATOR
2 years 10 months ago #333329

hello,

We think you have to reproduce this configuration, see my screenshot :



Make sure that your categories have text descriptions in their respective backend settings (main categories & sub categories).
Hope this will meet your expectations.

Regards

Last edit: 2 years 10 months ago by Philip.

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

  • Posts: 386
  • Thank you received: 7
  • Hikashop Business
2 years 10 months ago #333352

Hi,

I'm sorry I haven't been clearer and more complete... but I have my menu set to "product options" and not "category options".

Is there still some way to get the description of the category above this? Perhaps an adjustment in a view or something similar?


Regards,
Michiel

Attachments:

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

  • Posts: 386
  • Thank you received: 7
  • Hikashop Business
2 years 10 months ago #333354

Hello... we made credentials (testserver) so you can take a look for your self.

This message contains confidential information

Regards,
Michiel

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
2 years 10 months ago #333356

Hi,

I think Philippe missed the fact that you were talking about having the description of the category below the name of the category displayed at the top of each group of products.
There is actually no option to do that.
You'll have to edit the file product / listing.php via the menu Display>Views and add the code:

<div class="subcategory_description"><?php echo $category['category']->category_description; ?></div>
after the code:
<h2><?php echo $category['category']->category_name; ?></h2>

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

  • Posts: 386
  • Thank you received: 7
  • Hikashop Business
2 years 6 months ago #335822

Hi Nicolas,

This works really fine and neatly.. a late thanks ;)
But we also like to have the product description to be shown beneath the product name in the table listing.
How can we trigger that??
See screenshot.

Attachments:

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
2 years 6 months ago #335824

Hi,

Edit the file product / listing_table.php via the menu Display>Views.
There, you can add such code:

<div class="product_description"><?php echo $this->row->product_description; ?></div>
after the line:
<?php echo $this->row->product_name; ?>

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

  • Posts: 386
  • Thank you received: 7
  • Hikashop Business
2 years 6 months ago #335839

Works like a charme..
Thanks :cheer:

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

Time to create page: 0.083 seconds
Powered by Kunena Forum