FERBV Posted June 15, 2023 Share Posted June 15, 2023 Hi everyone, Long time not writing, but always reading. Thanks for all the help over the years. Let's see if I can get an easy solution for this: ------ I want to display a comment and a price calculation if the price showed is over an amount. It is on a module, so the price on the .tpl is bundle_price instead of productPrice. I will show you my goal. I am not into coding. You can laugh a little with my explanation :-)....but I guess it understandable. ------ {if $bundle_price >= 60} <div>You got 10% EXTRA DISCOUNT: {$bundle_price*0.1}</div> {if $bundle_price >= 90} <div>You got 20% EXTRA DISCOUNT: {$bundle_price*0.2}</div> {if $bundle_price >= 150} <div>You got 30% EXTRA DISCOUNT: {$bundle_price*0.3}</div> {if $bundle_price > 250} <div>You got 40% EXTRA DISCOUNT: {$bundle_price*0.4}</div> {/if} -------------- box_design.tplThanks a lot 1 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