Jump to content

Need smarty function


Recommended Posts

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 by jd250 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...