Jump to content

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


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.

Link to comment
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 ?

Link to comment
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
  • Create New...