sub-category titles for all products listing

  • Posts: 27
  • Thank you received: 0
12 years 9 months ago #68594

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: 12 years 9 months ago by Buchberger. Reason: make clearer

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

  • Posts: 84079
  • Thank you received: 13636
  • MODERATOR
12 years 9 months ago #68793

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.

  • Posts: 27
  • Thank you received: 0
12 years 9 months ago #68861

Understood. Thank you for the quick reply.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum