-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Closed
Copy link
Labels
Area: CatalogComponent: CheckoutIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.7Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Description
Preconditions and environment
- Magento version 2.4.7
- clear install Magento
Steps to reproduce
- create Simple product (i used sampledata)
- Create custom option:
- Checkbox type
- Require
- 1 or 2 option values
- Go to front, log in
- Add the product to cart !!WARNING choose only 1 option value, eg. Checkbox 1 on screen above
- Create an Order
- Then go to Accaunt and reorder this order
Expected result
Successful basket creation
Actual result
We're getting an error
Could not add the product with SKU "24-MB01" to the shopping cart: Some of the selected item options are not currently available.
Additional information
I found out that the problem is that when reordering the option is taken from $buyRequest (vendor/magento/module-catalog/Model/Product/Type/AbstractType.php:583)
$optionsFromRequest = $buyRequest->getOptions();
However, it is not interpreted as an array, but as a scalar
As a result, when validating \Magento\Catalog\Model\Product\Option\Type\Select::validateUserValue
and we get an error on line 97.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Area: CatalogComponent: CheckoutIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.7Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch