How do i display price with trailing zeros only on the product on product page? - Dawn

Would like to have price with trailing zero only showing in the “product information” on main.product not on featuread collection etc. Somebody know how to do it? :thinking:

hello there!

To display the price with trailing zeros only on the product on the product page in the Dawn theme, you’ll need to modify the Liquid code. Here’s how you can do it:

  1. Go to the “Themes” section of your Shopify admin.
  2. Select the theme you’re using and click on the “Editor” option.
  3. Locate the “Sections” folder and open the “product-template.liquid” file.
  4. Find the line of code that displays the product price and add the following Liquid code to it:
{{ product.price | money_without_currency | remove: ".00" }}

This code uses the Liquid money_without_currency and remove filters to display the product price without the currency symbol and with trailing zeros removed. This will show the price in a clean and concise manner, without any extra decimal places or zeros.

Thanks for replying! Cant find product template in refresh, do you know what else that template can be called else?