kcrawford Posted March 16, 2010 Share Posted March 16, 2010 Hello,I have added a tiny bit of code to hide the price for certain products in a category. The goal is to show the price only after a customer has added the product to the cart. However, when a combination is added in the BO, the product shows "Add to cart for price" and is then immediately overwritten with the default price. How do I also hide the price when using combinations with the product? The snippet of code I added is below. {if $product->id_category_default != 430} {if !$priceDisplay || $priceDisplay == 2} {convertPrice price=$product->getPrice(true, $smarty.const.NULL, 2)} {/if} {if $priceDisplay == 1} {convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)} {/if} {else} {l s='Add to cart to see price'} {/if} 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