How can I remove decimal places from prices in the Supply theme?

Solved

How can I remove decimal places from prices in the Supply theme?

Gigi42
Visitor
2 0 2

Hi,

I tried many things but cannot remove the prices' two decimals places in Supply theme. The ${{amount}} variable is set in currency format settings but my prices still show .00 at the end.

Considering this local currency I work with, decimal places are irrelevant and would look strange to customers. I contacted Shopify team and they recommended to buy and install a currency app as a workaround but I do not want to display currency switcher toggle and these apps come with so many features and extra code I don't need. I will have only one currency but it is without decimal places.

Any idea as to how to solve this issue with Supply theme?

Best,
Agnes

Accepted Solution (1)

Guleria
Shopify Partner
4112 804 1155

This is an accepted solution.

Hello Agnes,

Change the ${{amount}}  to ${{amount_no_decimals}} 

 

Thanks

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

View solution in original post

Replies 3 (3)

Guleria
Shopify Partner
4112 804 1155

This is an accepted solution.

Hello Agnes,

Change the ${{amount}}  to ${{amount_no_decimals}} 

 

Thanks

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
Gigi42
Visitor
2 0 2

Hello Guleria

Best,

Agnes

richard-mp
Excursionist
16 1 7

Hi @Gigi42 & @Guleria 

What file is the ${{amount}} code sitting in so I can try this too? I'm using Dawn theme

 

Thanks in advance!