how to have this layout ?

  • Posts: 82
  • Thank you received: 2
1 year 5 months ago #353134

-- HikaShop version -- : 4.7.4
-- Joomla version -- : 4.3.1
-- PHP version -- : ?
-- Browser(s) name and version -- : ?

hello,
I need to display my product like here :
www.mllaser-co2.com/machines-laser

- category title
- items category
- sub category title
- items sub category
- sub category title
- items sub category

what should be the good approach ?
thanks in advance

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

  • Posts: 83017
  • Thank you received: 13400
  • MODERATOR
1 year 5 months ago #353137

Hi,

You want to create a menu item of the type "HikaShop products listing" via the Joomla menu manager (or use one you already have).
Under the "products options" tab of your menu item, you'll find the setting "sub elements filter". Set it to "group by category" and the listing of the products will be grouped by category, like you want.

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

  • Posts: 82
  • Thank you received: 2
1 year 5 months ago #353138

Thanks Nicolas,
I made and it works. ( My first link was a category one)
Now : how to display category description ?

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

  • Posts: 83017
  • Thank you received: 13400
  • MODERATOR
1 year 5 months ago #353139

Hi,

In that same tab of the same page, you'll find a setting "Layout type". It is set to "image and title" by default.
Change it to "image and description" to get the description.

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

  • Posts: 82
  • Thank you received: 2
1 year 5 months ago #353182

if i enable it, i do not see the category desc under the category name

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

  • Posts: 83017
  • Thank you received: 13400
  • MODERATOR
1 year 5 months ago #353190

Hi,

My bad, I thought you were talking about displaying the description of the products, not the description of the categories.
There is no option for the description of categories.
For that, you'll have to edit the file product / listing via the menu Display>Views.
There, after the line:

<h2><?php echo $category['category']->category_name; ?></h2>
which displays the category name, you can add such code:
<span class="category_description"><?php echo $category['category']->category_description; ?></span>
and it should do it.

www.hikashop.com/support/documentation/1...-display.html#layout

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

Time to create page: 0.066 seconds
Powered by Kunena Forum