-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Imposible to reorder configurable products with one checkbox selected custom option #38736
Comments
Hi @RetroProgrammist. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
@magento give me 2.4-develop instance |
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Bravo, here is your Magento Instance: https://d4233eab37c46bc3ab6df90e65481f53.instances-prod.magento-community.engineering |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-11970 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Bravo. Thank you for verifying the issue. |
Facing the same issue in Magento2.4.5p2 Cloud |
These 2 lines of code fixes the issue. Tested in 2.4.5-p8.
|
This can be fixed this Creating the Custom Patch . Tested in Magento 2.4.5p2 Cloud
|
@magento I am working on this |
…ustom option - Changed single option value (int type) into array to count optionValues correctly
Preconditions and environment
Steps to reproduce
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
The text was updated successfully, but these errors were encountered: