BuB Posted February 18, 2013 Share Posted February 18, 2013 (edited) I want an image to show up if a price is 75 euro or higher. What kind of php code do I need to add to product.tpl? I've been searching the internet about the if function in php, but I don't really understand what I need to do in this case. I'm not a programmer, but I do understand a littel of code. What I want is this: if the price is 75 euro or more, an image appears above the price at the product page. If the price is lower than the image should not appear. Edited February 18, 2013 by BuB (see edit history) Link to comment Share on other sites More sharing options...
BuB Posted February 18, 2013 Author Share Posted February 18, 2013 Something like this, or am I totally wrong? {if $productPrice >= 75 <img src="/img.jpg"> {/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