Ash.Krish Posted February 2, 2011 Share Posted February 2, 2011 Hi guys,after several searches in our forum but can't able to find the right solution on how to disable sort by and view button on product page? for more clarity I've attached an image with square box indicating on help....guys, pl help me on this....cheers for grt help...Ash Link to comment Share on other sites More sharing options...
Ash.Krish Posted February 3, 2011 Author Share Posted February 3, 2011 is any one there to help me on this?Please help me on this...it would be a handy to me...cheersAsh Link to comment Share on other sites More sharing options...
snjdrew Posted February 3, 2011 Share Posted February 3, 2011 First make sure you make backups of the files I am mentioning below to edit. I have learned that backups are your friends .At the bottom of the product-list.tpl file in your theme you should see the line {l s='View'} Remove it to make your View button disappear.As for the Sort By ... in your theme there is another file called product-sort.tpl. You need to remove the following code from the end of it: <form id="productsSortForm" action="{$request}"> {l s='--'} {l s='price: lowest first'} {l s='price: highest first'} {l s='name: A to Z'} {l s='name: Z to A'} {l s='in-stock first'} {l s='sort by'} </form> Hope this was helpful, I am fairly new to this myself but I tested it and both seemed to work fine for me on 1.3.6. 1 Link to comment Share on other sites More sharing options...
Ash.Krish Posted February 4, 2011 Author Share Posted February 4, 2011 i got sorted out buddy...cheers for your grt help....i think it should help others too...cheersAsh Link to comment Share on other sites More sharing options...
cpiccadaci Posted April 5, 2011 Share Posted April 5, 2011 This didn't work for Prestashop Version: 1.4.0.17 any other suggestions? Also I am trying to remove the compare button too 1 Link to comment Share on other sites More sharing options...
Kumarr31 Posted July 29, 2011 Share Posted July 29, 2011 Hi, I tried to remove the sort by field as explained in this post but it doesn't work with PrestaShop™ 1.4.3. Can you help me on this. Thanks Link to comment Share on other sites More sharing options...
mobmaster Posted July 30, 2011 Share Posted July 30, 2011 maybe I'm late but maybe somebody will need it. Remove "view" button 1.4.3 opent product_list.tpl and remove <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> For compare button in 1.4.3 go to Back Office >Preferences >Products and "Max items in the comparator:" set to 0 (zero). For sort by field next time. 1 Link to comment Share on other sites More sharing options...
Chilly Posted August 4, 2011 Share Posted August 4, 2011 Oh, dang! What a cliff hanger. I'm trying now to get rid of the "Sort by" field as well. Would love to have a tip! Link to comment Share on other sites More sharing options...
jtlswanson Posted January 13, 2012 Share Posted January 13, 2012 Does anyone have a solution to this? I also would like to get rid of the "sort by" field. I am using 1.4.6.2. Thanks! Link to comment Share on other sites More sharing options...
sokpet Posted January 27, 2012 Share Posted January 27, 2012 just delete {include file="$tpl_dir./product-sort.tpl"} from category.tpl Link to comment Share on other sites More sharing options...
varadipeter Posted April 12, 2017 Share Posted April 12, 2017 (edited) On 1.6 DO NOT delete /themes/default-bootstrap/product-sort.tpl but instead replace it with an empty file with the same name. You will have to do this after every update though Edited April 12, 2017 by varadipeter (see edit history) 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