Show price with decimal and without currency

Show price with decimal and without currency

prestigehome
Explorer
62 1 16

Hello, the PayPal widget to show Pay in instalment require the price value in this format 999.99. So with decimal and without the currency symbol. I tried to insert {{ product.price | money_without_currency }} but the price is shown with "," and not with "." because we are an Italian store. So there is a way to substitute the comma with point?

 

Thank you

 

Replies 2 (2)

prestigehome
Explorer
62 1 16

Solved in this way: {{ product.price | money_without_currency | replace:',','.'}}

If it can help,

Francesco

smazad
Shopify Partner
1 0 0

This will not work when the scenario is 1.123,75