Bryan Lee Posted May 14, 2009 Share Posted May 14, 2009 Hi All,I want made the block "Filter by Brand". But I have a problem, every body have ideal to help me out please.Actualy the Brand and the Manufactuary is the same. I get the code from the file product-sort.tpl and edit to change become brand-sort.tpl to make the Filter by Brand/Manufactory block. But the result not as I expected. Some thing wrong. Please help me.Thanks Link to comment Share on other sites More sharing options...
Bryan Lee Posted May 15, 2009 Author Share Posted May 15, 2009 I'm sorry, I forget the attach file. I can´t ad a tpl script so you need to change it back to a tpl brand-sort.txt Link to comment Share on other sites More sharing options...
rocky Posted May 15, 2009 Share Posted May 15, 2009 You only need to add one line of code to sort by manufacturer. Add the following after line 15 of product-sort.tpl in your theme directory to add the option to sort by manufacturer/brand name: {l s="brand"} If you want to sort by manufacturer/brand id, use the following line instead: {l s="brand"} 2 Link to comment Share on other sites More sharing options...
Bryan Lee Posted May 15, 2009 Author Share Posted May 15, 2009 You only need to add one line of code to sort by manufacturer. Add the following after line 15 of product-sort.tpl in your theme directory to add the option to sort by manufacturer/brand name:{l s="brand"} If you want to sort by manufacturer/brand id, use the following line instead: {l s="brand"} Hi,Thank you very much, but I have a mistake I want make a block "Filter by Brand/Manufactory" not a Sort one. :-) hi hi I'm so sorry. Please guide me. Link to comment Share on other sites More sharing options...
Hanz_knife Posted August 29, 2009 Share Posted August 29, 2009 pls, i need it too!!!!!!!! Link to comment Share on other sites More sharing options...
Hanz_knife Posted August 29, 2009 Share Posted August 29, 2009 it seems that $man_sel doesnt exist.... Link to comment Share on other sites More sharing options...
emeliot87 Posted August 30, 2012 Share Posted August 30, 2012 Hello, sorry for digging out this topic, but I have similar question as BÁ TƯỜNG. I would like to sort by name of manufacturer. How to do that ? The quote with code had expired or what ? Regards Mateusz You only need to add one line of code to sort by manufacturer. Add the following after line 15 of product-sort.tpl in your theme directory to add the option to sort by manufacturer/brand name: {l s="brand"} If you want to sort by manufacturer/brand id, use the following line instead: {l s="brand"} Link to comment Share on other sites More sharing options...
Rooban Posted June 21, 2014 Share Posted June 21, 2014 Thanks for your code............i got it what i want Link to comment Share on other sites More sharing options...
vekia Posted June 22, 2014 Share Posted June 22, 2014 hello what ps version you use? some new one/ or also old 1.3 / 1.4 ? Link to comment Share on other sites More sharing options...
killerkhan Posted October 22, 2014 Share Posted October 22, 2014 hello what ps version you use? some new one/ or also old 1.3 / 1.4 ? Hello Vekia, I am using the latest Prestashop 1.6.0.8 and i need the same thing to implement in my category page. Thanks, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now