Display subcategories and products in the same mod

  • Posts: 20
  • Thank you received: 0
10 years 4 months ago #202480

-- HikaShop version -- : 2.3.1

Hy guys,

I really need your help on this one, too.
I need to display subcategories along with products (intermixed and ordered alphabetically). More exactly i need subcategories to act like a single/main product. THe filters should work also both on products and subcategories and these two should act on the same pagination. Is there a default way to do this or this would require a "heavy customization" on hikashop code. What do you think about hika updates if there would be a custom implementation? All in all from my point of view at this moment the heavy customization will raise a lot of issues when updating even though we will keep track of all the code written before updating.

Thanks,

--Flaviu

Last edit: 10 years 4 months ago by flaviu.gaitan.

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

  • Posts: 84323
  • Thank you received: 13715
  • MODERATOR
10 years 4 months ago #202492

Hi,

Filters are not meant to work or categories and products listings are not meant to display categories.
So doing it like that would indeed require a heavy customization, with a custom filtering system and a custom listing display. The best in that case would actually to create a small custom component which would only display that listing the way you need it with the filters you need. The products/categories links of the listing would then direct to the normal pages of HikaShop. So it wouldn't be a problem for updates since you would have the listing on another component.

But here is a close enough solution which doesn't require one line of coding:
You create fake products, one per sub category so that they would display on the products listing for the sub categories. That way, no issue with the filters, or the pagination or anything.
Then, you enter the URL of the sub category listing of the products in the "canonical URL" field of the sub category and you turn on the "force canonical URLs on listings".
That way, when you click on a fake product of the listing, it will actually direct you to the same link of the sub category.
So it will display as you want, but with zero coding but a bit of management overhead of the fake products.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum