1

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.

1
  • I tried this solution and works like a charm
    – LTroya
    Commented Dec 12, 2018 at 15:23

1 Answer 1

1

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

4
  • 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 Commented Mar 10, 2018 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. Commented Mar 10, 2018 at 7:10
  • 1
    Then please check the answer on magento.stackexchange.com/a/150788/17154 Commented Mar 10, 2018 at 7:12
  • @EmiproTechnologiesPvt.Ltd. thank you so much for sharing.. life gone easy with that plugin.. :)
    – Ask Xah
    Commented Nov 29, 2018 at 8:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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