Jump to content

Edit History

Dani1989

Dani1989

Hi,

New to PrestaShop and I would appreciate some help.

I have the following line in product-prices.tpl

{($product.price_without_reduction_without_tax-$product.reduction_without_tax)|number_format(2,',','.')}

and I am getting an error complaining about the last parenthesis where I pass arguments to the number_format filter.

I've followed the Twig documentation for this and I can't figure out why I am getting this error.

Can someone tell me why this is happening?

I am using PS1.7.6.1

Dani1989

Dani1989

Hi,

New to PrestaShop and I would appreciate some help.

I have the following line in `product-prices.tpl` 

`{($product.price_without_reduction_without_tax-$product.reduction_without_tax)|number_format(2,',','.')}`

and I am getting an error complaining about the last parenthesis where I pass arguments to the number_format filter.

I've followed the Twig documentation for this and I can't figure out why I am getting this error.

Can someone tell me why this is happening?

I am using PS1.7.6.1

×
×
  • Create New...