Magento2: Product Custom Options get recreated on every save

Created on 2 Aug 2016  路  30Comments  路  Source: magento/magento2

Possibly related to #5885

Preconditions

  1. Have Magento 2.1. (with PHP 7)
  2. Install the sample data and create a new store view
  3. Go to any (configurable) product and create a custom option as a dropdown with some options (for global)

    Steps to reproduce

  1. Open the product again
  2. Save

Expected result

  1. The custom option ID in the database should be the same as before

    Actual result

  2. The custom option gets recreated with a new ID. Same for all other tables (titles, types etc.)

This is a very critical bug for us, since it prevents any customer from completing the checkout with certain payment methods and it propably leads to the issues in #5885.

Catalog Fixed in 2.2.x Format is valid Ready for Work Reproduced on 2.1.x bug report

Most helpful comment

@veloraven The issue(s) with custom options are stopping our migration to M2 in its tracks. When will they be assigned? Thanks

All 30 comments

Also if anyone would have a temporary solution for us, even if it prevents custom options from being saved, I'd be very happy, this is urgent!

I also want to point out that this means that all products in quotes with the custom options attached have their custom options removed on save, since it's no longer the same id! That basically renders the product useless, since important custom options are missing in the final order.

@mktudock thank you for your report.

We already have internal ticket for this issue: MAGETWO-56411
Created for GitHub issue #5612
I have linked it to this issue as well.

I have same problem.

I discovered this behaviour several months ago but I thought it was normal.
So, same problem too, and it's very critical...

@veloraven Do you have any update on this?

@veloraven The issue(s) with custom options are stopping our migration to M2 in its tracks. When will they be assigned? Thanks

Does anyone @Magento knows how urgent this situation is?

The bug still here in version 2.1.3.
So disappointing...........

Does anyone have any temporary fix to resolve this issue?

Hello, I've created this patch CustomOptions Patch that solve this issue and the Cart option missing issue #5612
The patch can be applied on CE 2.1.5 or 2.1.4 and on EE 2.1.5 or 2.1.4 but I've tested this patch only for Magento EE 2.1.5.
Hopes is helpful

@manfrinm : I'm getting error

 Applying patches for magento/module-catalog
    https://raw.githubusercontent.com/Hevelop/magento2-patches/master/Patch-Magento_Catalog-M2.1.5-MAGETWO-56410-MAGETWO-56411-github-issues-5931-5612.patch (Fix: https://github.com/magento/magento2/issues/5612)
   Could not apply patch! Skipping.

We are also experiencing this issue. In addition to shopping cart options it also affects Reorder functionality. This is also a problem not just for custom options on simple products but also for bundle options, which should probably be raised as a separate issue.

Is there any indication when this issue would be resolved? This is quite a major issue for anyone looking to use Simple Products with Custom Options as it renders them practically unusable.

Yes this is crazy such an issue is not fixed after monthes.
I had to write a special .htaccess to forbid my client to edit some products in the backend........

If it helps others, I have produced a reduced version of @manfrinm's patch, as the original included some good but unnecessary changes that were causing patch application errors.

@scottsb Thanks. @veloraven Is anybody at Magento aware how urgent this situation is? It looks like community is expected to handle it of its own..

Hi @scottsb I tried the patch and it seems to have some issues when you delete an option value (that's not the last one). What happens it also seems to delete option values from other options too. Would be great if someone could fix.

@magento-team, @veloraven : I'm really appreciated that the fix is finally "moved from TODO to Done in branch [develop]"
When are you guys going to release this fix?
Thank you.

@magento-team , @veloraven : would you care to at-least prepare a patch and provide us as a quick fix until it is released officially with the newer version? this is something very critical and we can not move ahead with our project.

@manfrinm , @scottsb, i tried applying your patches the options are not being replaced now but in case we are using multiple custom options, if we remove one value form a custom options, all the values from other custom options are getting removed also.

@sheldmandu / @Taral-Patoliya Did you manage to find a solution for the delete other options problem?

@magento-engcom-team Is this issue fixed in 2.2? It's marked as Done in develop. It's the same underlying problem as that for bundles described in https://github.com/magento/magento2/issues/9546

@mktudock, thank you for your report.
The issue is already fixed in 2.2.0

@magento-engcom-team Any chance of this being backported to 2.1 as it's quite a major issue that stops reorders working? Perhaps you could point me to a commit in which this issue was resolved so I can review what would be involved in backporting myself?

hello,

I have facing same issue as https://github.com/magento/magento2/issues/5612.

Can you please help me how to resolve?

I have use magento 2.1.7.

I also apply patches given by you but it creates same option again and displays two times in frontend.

If Possible then give patches for it.......

@magento-engcom-team Can you please provide links to the commits that fix this?

Still a problem in Rest API with 2.2.0
Even when including option_id and option_type_id that match the previous record.

Was this page helpful?
0 / 5 - 0 ratings