jd250 Posted March 27, 2018 Share Posted March 27, 2018 (edited) Hello I need the following part to be incluided in "product.tpl" I need to catch the value (different for product) {if $feature.id_feature==30} and multiply for a fixed value (price of kw/h) to display the consume of my products... I don't know how to do that {math equation="(( x * y ))" x=0.00012 y=$feature.id_feature==30} DOES NOT WORK Edited March 27, 2018 by jd250 (see edit history) Link to comment Share on other sites More sharing options...
sunnydesigner Posted March 30, 2018 Share Posted March 30, 2018 Try the following code: {if $feature.id_feature==30} {math equation="(( x * y ))" x=0.00012 y=$product->price assign=unit_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