Shopify themes, liquid, logos, and UX
How to remove money_with_currency from the product page and product cards of the dawn theme? So now its showing as $10.00 USD, I want it without the currency, so just $10.00. I know about the money filter, just don't know how to put it to use.
Hi @Sixpieces ,
You can go to Settings -> Store details -> Store currency -> change currency formating
Update like the screenshot below
@EBOOST this works but when the customer in europe selects their country the currency is still in $USD. Same the other way around. What is a solution to this?
Hi,
You need create market for each country if you want to use their currency.
Settings-> Markets
Hi,
From what I understand, you want to remove phrases like 'USD' from the relevant places. What you've described can be done. Could you send the website link?
Terence
To remove the currency code from the price display in the Dawn theme on your Shopify store, you will need to modify the theme's Liquid templates to use the appropriate money filter. Here's a step-by-step guide on how to do it:
First, identify the Liquid files where the prices are displayed. In the Dawn theme, this typically includes the product page and product cards.
You'll need to replace the money_with_currency filter with the money filter. Here’s how you can do it:
Open main-product.liquid or product.liquid.
Locate the price display code. It might look something like this:
{{ product.price | money_with_currency }}
{{ product.price | money }}
Save the changes.
Open product-card.liquid.
Locate the price display code, which may look similar to:
{{ product.price | money_with_currency }}
{{ product.price | money }}
Save the changes.
Depending on your theme customization, you may need to update other templates where prices are displayed. This can include collection templates, cart templates, and more.
After saving the changes, go to your storefront and check the product pages and product cards to ensure that the currency code has been removed and only the price is displayed.
Here’s a concrete example of what you might see and change in the code:
<span class="price">
{{ product.price | money_with_currency }}
</span>
<span class="price">
{{ product.price | money }}
</span>
By following these steps, you should be able to remove the currency code from the price display on your product pages and product cards in the Dawn theme.
Save the changes.
my main-product.liquid file doesnt have that. Only {{ variant_price_compare | money_with_currency }}, and when i change it to {{ variant_price_compare | money }} nothing changes to the prices on the website.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024