What's your biggest current challenge? Have your say in Community Polls along the right column.

How can I remove decimal points from product prices in my cart?

How can I remove decimal points from product prices in my cart?

Fritidsshop
Visitor
2 0 0

When I go to a product page in Shopify it shows the amount correctly without decimals. See attached.

Yet, when I put the product in the cart Shopify shows decimals.

www.fritidsshop.dk is a dropshipping shop we buy in euros and sell in DKK (kroner).

What to do? How to remove the decimals and display the precise amount on the cart page as on the product page?

 

Kind regards

Louis

Replies 3 (3)

Sushant
Shopify Partner
81 2 16

Hi,

The reality is that the price set for the products is indeed in decimals. 

In your store theme design, the price on the product page is just formatted in a way that decimals are not visible.

https://prnt.sc/1xkz512

Any Likes and Accept as Solutions are greatly appreciated✌ Having trouble? Hire us! https://seventhtriangle.com/
Fritidsshop
Visitor
2 0 0
How to fix it

YvanHK
Shopify Partner
13 1 1

Did you try:

Settings/General/Store Currency/ HTML with currency: {{amount_no_decimals}} ?