magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Wrong customizable option price after saving product

Open siven76 opened this issue 9 years ago • 7 comments

When updating a product, the customizable option prices are not updated correctly if the price is greater than $999. This is because the price of the customizable option is formatted with comma for thousands separator.

Preconditions

  1. Magento 2.1.3
  2. Australia/Melbourne locale

Steps to reproduce

  1. Edit a product with customizable option
  2. Set the price (over $999)
  3. Save the product
  4. Edit the product again. The price will have comma separators.
  5. Save the product again. Check the option's price. It will be $1.

Expected result

  1. The price of the options should be saved correctly (instead of being truncated)

Actual result

  1. The price of the option is truncated (from being converted from string to float)

siven76 avatar Feb 22 '17 15:02 siven76

No, the problem is fixed in Magento 2.1.4.

On 28 Feb 2017, at 5:41 pm, ginny <[email protected]mailto:[email protected]> wrote:

Same problem here. Does it also happen on Magento 2.1.4?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/magento/magento2/issues/8652#issuecomment-282956322, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACVFbW5ZeLkeDrPLGDH6DTjUCMHLu3Sdks5rg8F8gaJpZM4MIwrf.

siven76 avatar Mar 03 '17 11:03 siven76

I am working on Magento2 ver 2.1.5 and this problem is occurring for me exactly as described.

Dorado-John avatar Mar 09 '17 19:03 Dorado-John

Same problem on Magento 2.1.7

Create dropdown customizable prices - Option Type dropdown

Same as siven76:

Steps to reproduce

Edit a product with customizable option Set the price (over $999) Save the product Edit the product again. The price will have comma separators. Save the product again.

jer23jk avatar Jun 13 '17 04:06 jer23jk

Hi @siven76. Thanks for reporting this issue. Internal ticket MAGETWO-70296 was created.

oleg-onufer avatar Jun 27 '17 12:06 oleg-onufer

@siven76, thank you for your report. We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue. We tested the issue on 2.3.0-dev, 2.2.0, 2.1.9

magento-engcom-team avatar Oct 04 '17 13:10 magento-engcom-team

This is still an issue...Magento ver. 2.1.5

jdovan avatar Oct 17 '17 16:10 jdovan

Still same issue in 2.1.7. Kindly share solution please

gopal2k6 avatar Jan 16 '19 18:01 gopal2k6