Global price format without thousand separator

Global price format without thousand separator

lukas-irsak
Visitor
2 0 0

Hi,

How to achieve following format for whole eshop?

Format:
€ 1 650

I found this working but i don't want to format price everywhere:

price | money_without_trailing_zeros | replace: ".", " "

And also i found this https://shopify.dev/docs/themes/liquid/reference/filters/money-filters but it don't seem to cover my use case as well.

Is there any possibility to format price globally with format above?

Replies 3 (3)

LeonL
Tourist
6 0 24

To anyone fighting this in 2023, some settings in Shopify has been changed and the solution that worked in Debut theme for my new shop goes for me as this:

 

1. Settings > General > Store currency > Change formatting:
s.png

2. Then Edit theme code. Modify the line in both product-price.liquid and product-price-listing.liquid to this:
 assign money_price = price | money | remove: '.'

In my case, it was around lines 23, 24, but could differ. Screenshot from my new code that worked below:


ss.png

ziko_bll
Visitor
2 0 2

i can't find product-price.liquid and product-price-listing.liquid there's only price.liquid and it's not working

ziko_bll
Visitor
2 0 2

is there any update about this? thanks.