lillik/magento2-price-decimal

Price change in admin when save product

allinvinod opened this issue · 13 comments

I have installed this extension which is working fine on frontend. But When I am saving the product in admin, product price changed from 7,499 to 7.
I am using Magento 2.1.8

@allinvinod can you post the settings you have for the price decimal ?

I think you can get this only if you have Decimal Length = 0, you should use the 3 in your case.

Yes, I have Decimal Length = 0

@allinvinod you will still have the 7,499 saved in database but the displayed value will be 7, it's the matter of how many decimals you want to show.

I have a similar problem. The price is correct on first save of a product.
If I change something other like SKU, then the price will be rounded down to $10 from starting $10,900. The price will also be changed in frontend so it is saved to database.

@allinvinod do you have an other extension for the same purpose?

Thanks @allinvinod.

Theme Issue.

I have this same issue, i try to override vendor/magento/module-catalog/view/base/web/js/price-utils.js into this route -> my-theme/Magento_Catalog/web/js/price-utils.js, and setting requiredPrecision = 0... But, it's not working, it still changing the price from 7,499 to 7... Any thoughts?

Hi @fsrojash, were you able to fix this? Thanks a lot.

Hi @amcastror, nop, still with the issue...So, to keep a price like $7.499 i have to delete the comma before saving...

Fixed in version 1.0.6