Zen_j1 Posted October 23, 2015 Share Posted October 23, 2015 (edited) How to hide/disable add to cart button when price is set to Zero in prestashop 1.5.4.1. In product-list.tpl. product.tpl and homefeatured.tpl. Edited October 25, 2015 by Zen_j1 (see edit history) Link to comment Share on other sites More sharing options...
Zen_j1 Posted October 25, 2015 Author Share Posted October 25, 2015 Link to comment Share on other sites More sharing options...
hatak Posted October 25, 2015 Share Posted October 25, 2015 use this in yout .tpl files {if ($productPrice == 0)}<span style=display:none"> your code to hide </span>{/if} Link to comment Share on other sites More sharing options...
Zen_j1 Posted October 25, 2015 Author Share Posted October 25, 2015 use this in yout .tpl files {if ($productPrice == 0)}<span style=display:none"> your code to hide </span>{/if} thank for your reply can you please help me with code what should be code where it say "Your code to hide" Link to comment Share on other sites More sharing options...
hatak Posted October 25, 2015 Share Posted October 25, 2015 i'm sorry i gave u a clue only - you should learn something about html php Link to comment Share on other sites More sharing options...
Zen_j1 Posted November 2, 2015 Author Share Posted November 2, 2015 Link to comment Share on other sites More sharing options...
Zen_j1 Posted November 12, 2015 Author Share Posted November 12, 2015 Link to comment Share on other sites More sharing options...
maxfox44 Posted November 17, 2015 Share Posted November 17, 2015 I recently bought a module to replace the add to cart with a email link to request price etc. 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