Jump to content

Edit History

Monovolador

Monovolador

Hello,

I'm trying to do math operation between two variables inside product-discounts.tpl but result is wrong...

 

{$product.regular_price} 

[output: 12,85 €]

{$quantity_discount.discount} 

[output: 9.8%]

{$product.regular_price*$quantity_discount.discount}

[output: 117,6] Should be: 12.85*9.8= 125.93

Any idea?

I've tryed:

{$product.regular_price|floatval}

[output:12] Should be: 12.85

 

Thanks in advance

 

Prestashop 1.7

 

Monovolador

Monovolador

Hello,

I'm trying to do math operation between two variables inside product-discounts.tpl but result is wrong...

 

{$product.regular_price} 

[output: 12,85 €]

{$quantity_discount.discount} 

[output: 9.8%]

{$product.regular_price*$quantity_discount.discount}

[output: 117,6] Should be: 12.85*9.8= 125.93

Any idea?

I've tryed:

{$quantity_discount.discount|floatval}

[output:12] Should be: 12.85

 

Thanks in advance

 

Prestashop 1.7

 

Monovolador

Monovolador

Hello,

I'm trying to do math operation between two variables inside product-discounts.tpl but result is wrong...

 

{$product.regular_price} 

[output: 12,85 €]

{$quantity_discount.discount} 

[output: 9.8%]

{$product.regular_price*$quantity_discount.discount}

[output: 117,6] Should be: 12.85*9.8= 125.93

Any idea?

Thanks in advance

 

Prestashop 1.7

 

Monovolador

Monovolador

Hello,

I'm trying to do math operation between two variables inside product-discounts.tpl but result is wrong...

 

{$product.regular_price} 

[output: 12,85 €]

{$quantity_discount.discount} 

[output: 9.8%]

{round($product.regular_price*$quantity_discount.discount,2)}

[output: 117,6] Should be: 12.85*9.8= 125.93

Any idea?

Thanks in advance

 

Prestashop 1.7

 

×
×
  • Create New...