Jump to content

{math} not working on prestashop 1.7.5


MyDesignAr

Recommended Posts

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

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

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...