-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Custom options save wrong price values after editing #6342
Comments
Hi @AirmanAJK , thanks for reporting this issue. We've created internal ticket MAGETWO-57639. Best, |
Can confirm this issue also exists using $AUD as currency also. |
This issue also exits with đ - Vietnam dong.. |
Fixed issues: - MAGETWO-56866: [GITHUB] Custom option prices unexpectedly change after save #6116 #6342 - MAGETWO-58873: Cannot receive shipping quotes via the admin panel or front end - MAGETWO-55216: Reference by name to non existing plugin lead to Di compilation failure - MAGETWO-58958: Fatal error in console in flow for apply new Scheduled Staging Update using CRON - MAGETWO-55924: [FT] Test fails because of unexpected alert window - MAGETWO-58664: [GitHub] Free shipping rule with table shipping method breaks checkout #6346 - MAGETWO-58849: [GitHub] Error in product edit page after disable Review module #6704
Confirmed still an issue in CE 2.1.3 |
For USD price formatting in the administration back end, there is really no need for a comma in the price (which seems to improperly attribute a decimal to your value on product save). My temporary fix is to just stop reporting prices with the comma with: \vendor\magento\module-catalog\Ui\DataProvider\Product\Form\Modifier\CustomOptions.php
I've yet to learn how to override in a much more proper way and for this I apologize. |
Hi WaterSlide. To address the right way to fix this, normally you would want to create an "after" plugin in your own extension to just update the value after the function is called, but since this formatPrice() function is protected, you either need to apply the plugin to another function in the call stack, or extend the class and force you inherited version to be injected using the di.xml configuration. The latter is a bit more invasive as it replaces the entire class with yours, which is why a plugin is typically preferred for these kinds of small changes. |
This Bug is still open since month. And I can confirm that it still exists in 2.1.5. |
This patch seems to work fine in magento 2.1.5: But why it isn't still integrated in one of the latest magento versions 2.1.3, 2.1.4 or 2.1.5. ??? |
Still its not working in 2.1.5. |
Internal ticket for ver. 2.1 - MAGETWO-58571. |
@AirmanAJK, thank you for your report. |
i have same issue like that. when i have update product price rs50000 and save, after some time it show the value like rs50 in backend and frontend in magento 2 version 2.1.8. kindly resolved it asap.price change automatically.fully frustrated guys help me. |
I have also same issue . When i have update product price 1.000,00 which is converted into 1 Kindly update |
Magento CE 2.1.0 using USD as currency.
When product custom options are saved with prices > $999, revisiting the product page will display the "Price" field for custom options using commas to separate thousands (ie 1,500.00 or 1,000.00).
When saving prices with these default values, the first comma is used as the decimal point.
Saving 1,000.00 in a custom options field will store 1.00 in the database.
Steps to reproduce
Expected result
Magento should handle custom option prices on product edit pages as it does for regular product prices.
The text was updated successfully, but these errors were encountered: