Jump to content

[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

Link to comment
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
Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

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
Link to comment
Share on other sites

  • 5 months later...
  • 2 weeks later...
  • 5 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...