I want to change price of the product from 1499.00 PKR to 1499

I want to change price of the product from 1499.00 PKR to 1499

2 0 0

By default , Shopify shows the price of the products as “1499.00 PKR” i want to remove the end zeros and write it as 1499 

please tell any solution



Replies 3 (3)

Shopify Partner
44 2 14

You're gonna have to change the code a bit, depending on the theme you're using multiple places or it could be a setting in the theme editor, check settings and currency or change the code like below



{{ money_with_currency }}

to this

{{ money_without_trailing_zeros }}


Shopify Partner
82 8 25

Hi @salman26,


You need to edit the code. Find the file where product prices are displayed. This is often in product-template.liquid, product.liquid, or price.liquid. It can also be in a section like product-template.liquid under the sections folder. 


You can try to replace {{ product.price | money }} with {{ product.price | divided_by: 100 | money_without_trailing_zeros }}

If you find my suggestion helpful, please give it a like or mark it as a solution!
And discover more approaches to:
Streamline invoicing process Boost sales with labels & badges Add social proofs & create FOMO
Or get valuable updates and private deals regarding Shopify here.

Shopify Partner
536 17 37



Locate the Price Display Code

Create a New Snippet ( For Custom Money Filter) 

{% comment %}
  Snippet to display money without trailing zeros
{% endcomment %}

{% assign formatted_value = amount | divided_by: 100.0 %}
{% if formatted_value contains '.' %}
  {% assign amount_parts = formatted_value | split: '.' %}
  {{ amount_parts[0] }}
{% else %}
  {{ formatted_value }}
{% endif %}


Click here to Contact and Get Shopify Store Help
E-mail - hi@ecommercesmalltask.com
We are Shopify Experts   from Ecommerce Small Task Company.