- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add products to topmenu in frontend
Hello,
i searched around long time, but cant find a solution.
I want to add the products to the category menu in the frontend. The products should work like subcategories. I tried to find where in the Topmenu Block the menu items are build, but i did not find it.
Does anybody know how to manage this?
Best Regards,
Andreas
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Add products to topmenu in frontend
Hello @DarkWolf1981
A simple way is to rewrite your subcategory URL to specific product URL.
In the Database Search Table: url_rewrite
And, find subcategory and edit just column target_path and enter URL like catalog/product/view/id/[product_id]
Reindex and cache flush.
I hope it helps.
I hope it helps.
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Add products to topmenu in frontend
Hello,
thank you, that will work if you want to do this with 1 or 2 products. But with 20 in different categories it should be done automatic when you add a product.
My current way is to write the complete menu on my own in the topmenu.phtml. Hope there is a better way to do this.
Best Regards,
Andreas