Ben4fi Posted December 14, 2015 Share Posted December 14, 2015 Hello, I'm trying to create a link in my topmenu that will display all my products with the "condition=used" attribute. Any idea on how to proceed? Thank you! Link to comment Share on other sites More sharing options...
Azoda.net Posted December 17, 2015 Share Posted December 17, 2015 maybe when you show product on menu you can check it on database to see what the product has used then add image into html on that Link to comment Share on other sites More sharing options...
Ben4fi Posted December 17, 2015 Author Share Posted December 17, 2015 Hi, Not really what I need. I have products that can be sold in new condition, and some are used. But the main categories are the same. In my product_list, it's easy to make a difference (I had a flag for the used products). I do it by testing "if product.condition = 'used'". I would like to create a link that show only the used, like a filter in the blocklayered module for example... Link to comment Share on other sites More sharing options...
Azoda.net Posted December 17, 2015 Share Posted December 17, 2015 sorry,I'm mistake so why you don't create a module then put that link on menu in this module you will filter product with condition = used then show it on a tpl file then use this code $link->getModuleLink('module_name', 'controller_name'); you will be get url of that page to put on menu Hope this helpful Link to comment Share on other sites More sharing options...
Recommended Posts