MyDesignAr Posted April 9, 2019 Share Posted April 9, 2019 hi, i'm trying to show a simple math result into my miniatures/product.tpl but is not working. The code i'm using is: {* $height=4, $width=5 *} {math equation="x + y" x=$height y=$width} The above example will output 9... Some help? Thanks! Link to comment Share on other sites More sharing options...
Rolige Posted April 10, 2019 Share Posted April 10, 2019 Hello: You can't just copy directly from smarty doc. This is a comment {* $height=4, $width=5 *} not a variable declaracion. $height and $width must be defined before operation. Try with static values or a defined variable. Regards 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