cancel
Showing results for 
Search instead for 
Did you mean: 

Add products to topmenu in frontend

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

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

2 REPLIES 2

Re: Add products to topmenu in frontend

Hello @DarkWolf1981 

 

A simple way is to rewrite your subcategory URL to specific product URL.

I
n 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.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

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