The price-utils.js solution did not work for me.

I have changed from const DEFAULT_PRECISION = 2; To const DEFAULT_PRECISION = 0; in /vendor/magento/framework/Pricing/PriceCurrencyInterface.php

but, it is working only on the product listing page. I want to remove precision from the entire site.

  • I tried this solution and works like a charm – LTroya Dec 12 '18 at 15:23

Please Check https://github.com/lillik/magento2-price-decimal Extension. I think it'll help you.

| improve this answer | |
  • it is working fine for frontend but creating the issue within admin. When we save product in admin, it is change price after comma. for ex: 7,499 changed to 7 – Vinod Kumar Mar 10 '18 at 7:07
  • 1
    We have tried this and it's working properly for us. I don't know why it causes an issue in your backend. – Emipro Technologies Pvt. Ltd. Mar 10 '18 at 7:10
  • 1
    Then please check the answer on magento.stackexchange.com/a/150788/17154 – Emipro Technologies Pvt. Ltd. Mar 10 '18 at 7:12
  • @EmiproTechnologiesPvt.Ltd. thank you so much for sharing.. life gone easy with that plugin.. :) – Ask Bytes Nov 29 '18 at 8:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.