0

I want to remove decimal digits from discount price on product details page in magento 2.Any solution.

enter image description here

0

you can use floor() function for remove decimal digits from discount price Reference

0

To correct the product page you also should modify next javascript:

/vendor/magento/module-catalog/view/base/web/js/price-utils.js

on line 38 change

var precision = isNaN(format.requiredPrecision = Math.abs(format.requiredPrecision)) ? 2 : format.requiredPrecision,

for

var precision = 0,

Hope this help.

I found this in: Magento 2 : How to remove decimal points from the price

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.