GravCart Adding the comma for price

How can I change the pricing to include ’ , ’ My currency is in yen. I would like to show it as 4,000,000 or 4,000

The script is omitting ’ , ’ whenever I type in the price.

You can use the number_format Twig filter, as -

{{ 9800.333|number_format }}

Ah. right one. I just needed the thousand separator. so this is all needed. Thanks.

{{ 9800.333|number_format }}
1 Like

Glad it helped :slight_smile: