Mandala Posted September 21, 2010 Share Posted September 21, 2010 HiSorry if this is a stupid question - I'm new to PrestaShop. I was wondering if there is a way to remove an 'add to cart' option for specific products only - and in it's place having a contact button? I do wish to list the products on the site, but my payment processor doesn't support this one specific product.Thanks in advance. Link to comment Share on other sites More sharing options...
rocky Posted September 22, 2010 Share Posted September 22, 2010 See my post here. You could also hardcode a product ID instead of making it products greater than $0 by changing: {if $product->getPrice(true, $smarty.const.NULL, 2, $smarty.const.NULL, true) == 0} to: {if $product->id == 2} Change 2 to the ID of the product you want to have as "Contact us" instead of "Add to cart". Link to comment Share on other sites More sharing options...
Mandala Posted September 22, 2010 Author Share Posted September 22, 2010 Thank you.In the alternative way of doing it you put in your post above, is it still editing the product.tpl file?Thanks Link to comment Share on other sites More sharing options...
rocky Posted September 22, 2010 Share Posted September 22, 2010 Yes. If you are editing another file like product-list.tpl, you will need to use $product.id_product instead of $product->id. Link to comment Share on other sites More sharing options...
Mandala Posted September 22, 2010 Author Share Posted September 22, 2010 Thank you.and in the first part of the code above:{if $product->getPrice(true, $smarty.const.NULL, 2, $smarty.const.NULL, true) == 0}is the 2 there also the product ID I will have to edit? I assume it is. Sorry, I'm quite the novice when it comes to all of this.. Link to comment Share on other sites More sharing options...
rocky Posted September 22, 2010 Share Posted September 22, 2010 No, it is not. That is the number of decimals. 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