Jump to content
Ash.Krish

[Solved] how to disable sort by and view button in product page?

Recommended Posts

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

37927_orrWLbliGxcDgi2OpX5F_t

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

This didn't work for Prestashop Version: 1.4.0.17

any other suggestions? Also I am trying to remove the compare button too

  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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 by varadipeter (see edit history)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More