Skip to main content

sub-category titles for all products listing

14 years 1 month ago - 14 years 1 month ago #68594 by Buchberger
Thank you for an excellent product.

We have a menu item where we show all the products in a category. We have selected 'all sub elements' so that all the products in the sub-categories will also display. This works perfectly. We are ordering by product_parent_id.

The url is typically 'index.php?option=com_hikashop&ctrl=product&task=listing&cid=22&Itemid=33'

Is it possible to print out the sub-category titles before the products assigned to it ? i.e.

Product Listing
– Sub-category title 1
– – product 1
– – product 2
– Sub-category title 2
– – product 1
– – product 2

Can this be done in Views ?
Last edit: 14 years 1 month ago by Buchberger. Reason: make clearer

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

14 years 1 month ago #68793 by nicolas
Hi,

Everything is possible. However, it's not easy.
The categories are not loaded in the products listing view.
So you would first have to load them. Then, you would have to compare the category_id value of the product with the id of the categories to find the correct one and see if you need to display it or not.
If you're a developer that shouldn't be a problem and in that case, you can edit the file "listing_div" of the view "product" in order to do that.

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

14 years 1 month ago #68861 by Buchberger
Understood. Thank you for the quick reply.

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

Time to create page: 0.043 seconds
Powered by Kunena Forum