Welcome to the Liquify Community

Updated 2 months ago

Remove USD from Pricing

What's the alpine.js script I can use to remove USD from this list?

I tried: x-text="LiquifyHelper.moneyFormat(total.price, true, '${{amount}} ')" (removing the USD but it didn't work), any tips?
Attachment
CleanShot_2024-10-03_at_13.03.56.png
C
J
j
7 comments
I used x-text="moneyFormat(total.price, true, '${{amount}}')" and it works!

Marking as sovled
@jonas.halbstark Even though it works, i do get an error. Would love to know how to handle this use case properly πŸ™‚
Attachment
CleanShot_2024-10-03_at_16.45.25.png
@Jan Any thoughts regarding this? I marked this as solved but just need this confirmation on how to properly remove the currency indicator (ex. USD) without resulting to errors
Hey Clyde, can you try this version with "LiquifyHelper" in front of it?
x-text="LiquifyHelper.moneyFormat(total.price, true, '${{amount}}')"
Will try. ... thanks Jan
Hi @Clyde, we are checking the default settings of your store. So i would not change it in the code. Best way to remove it, in general, is in the shopify settings:
Attachments
Bildschirmfoto_2024-10-04_um_09.39.54.png
Bildschirmfoto_2024-10-04_um_09.38.45.png
Hi Jonas, good to know! Thank you.
Add a reply
Sign up and join the conversation on Discord