Jump to content

Delete 'Add to cart' and 'Details' buttons on Home page and Category page


pascuald
 Share

Recommended Posts

In default Prestashop theme it comes from product-lis.tpl line number #134 having class 'button-container' so you can do some magic around there:

Okay, what can be the magic? The standard way is to check the name of controller->php_self and check if it is 'index' or 'category' then do not print that whole division on your shop.

How can you check this controller?

Just assign value of $this->context->controller->php_self to a variable either in both category and index controller or simply in frontController only. And you can use that variable to compare.

Share this post


Link to post
Share on other sites

Hello Vipul (hope it is your first name :-)

Thanks for this answer but it seems too complicate to me.

Can i just take part of the code off in this product-list.tpl file ,  so the block with these two buttons will disappear ?

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

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