-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Price change in admin when save product #27
Comments
@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. |
I am not using this extension. Because the issue was not fixed.
…On Thu, Apr 5, 2018 at 5:26 PM, maettuw ***@***.***> wrote:
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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVJRKaAywYkaZzoGS0alOTOsEk-ZzWrJks5tlgZ5gaJpZM4SlL5f>
.
|
@allinvinod do you have an other extension for the same purpose? |
No, I don't have another extension.
I have fixed the issue to edit precision value from catalog js.
Override below JS in your theme:
vendor/magento/module-catalog/view/base/web/js/price-utils.js
and update precision value from 2 to 0.
var globalPriceFormat = {
*requiredPrecision: 0,*
integerRequired: 1,
decimalSymbol: ',',
groupSymbol: ',',
groupLength: ','
};
Regards,
Vinod
…On Thu, Apr 5, 2018 at 6:05 PM, maettuw ***@***.***> wrote:
@allinvinod <https://github.com/allinvinod> do you have an other
extension for the same purpose?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVJRKTHVZAqUN5JiYH72t2o0j9Q71vStks5tlg-PgaJpZM4SlL5f>
.
|
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 |
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
The text was updated successfully, but these errors were encountered: