-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Integrity constraint violation error after reordering product with custom options #12705
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
Comments
#mageconf |
Hello I am looking for this issue #mm18in |
@vinayshah thank you for joining. Please accept team invitation here and self-assign the issue. |
…product with custom options - Fixed issue by updating options if parent item is same for more than one product - Fixed issue for reorder in admin while checking the availability of product, which is not available in case of associate product.
…product with custom options - Fixed issue by updating options if parent item is same for more than one product - Fixed issue for reorder in admin while checking the availability of product, which is not available in case of associate product. - Fixed Null coalescing operator issue
Hi @alena-marchenko. Thank you for your report. The fix will be available with the upcoming patch release. |
…product with custom options (issue fixed for 2.2-develop) - Fixed issue by updating options if parent item is same for more than one product - Fixed issue for reorder in admin while checking the availability of product, which is not available in case of associate product.
Hi @alena-marchenko. Thank you for your report.
The fix will be available with the upcoming 2.3.0 release. |
Hi @alena-marchenko. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
Preconditions
Steps to reproduce
-- Select color and size from the list and click Next
-- Select Colors Black and Blue from the Color Section, and Size S, M, L from the Size section and click Next
-- At the next screen enter the following configuration:
--- Images: Skip image uploading at this time
--- Price: Apply single price to all SKUs = 100
--- Quantity: Apply single quantity to each Skus = 10
-- Option 1
--- Option title: opt1
--- Option type: radio button
--- Required: leave it empty
--- Title: option 1
--- Price 10.00
--- Price type: fixed
--- Sku: 22
-- Option 2
--- Option title: opt2
--- Option type: radio button
--- Title: option 2
--- Price 15.00
--- Price type: fixed
--- Sku: 21
Color: Black
Size: S
Opt1: None
Opt2: option2 + $15.00
Qty: 1
Expected result
New order page is opened
Actual result
Unable to reorder, error is thrown and logged in var/report
Log from var/report:
[a:4:{i:0;s:386:"SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
dbname
.quote_item_option
, CONSTRAINTQUOTE_ITEM_OPTION_ITEM_ID_QUOTE_ITEM_ITEM_ID
FOREIGN KEY (item_id
) REFERENCESquote_item
(item_id
) ON DELETE CASCADE), query was: INSERT INTOquote_item_option
(product_id
,code
,value
) VALUES (?, ?, ?)";i:1;s:13245:"#0 /pathToMagentoFolder/vendor/magento/framework/DB/Statement/Pdo/Mysql.php(95): Zend_Db_Statement_Pdo->_execute(Array)The text was updated successfully, but these errors were encountered: