pascuald Posted June 8, 2015 Share Posted June 8, 2015 Hello , I would like to delete 'Add to cart' and 'Details' buttons on Home page and Category page, Someone to help me on this Thanks a lot Pascual See this screen shot Link to comment Share on other sites More sharing options...
Vipul Hadiya Posted June 8, 2015 Share Posted June 8, 2015 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 More sharing options...
pascuald Posted June 8, 2015 Author Share Posted June 8, 2015 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 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