-
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
Adobe Commerce Engineering team started working on this issue. We will reach out to you if we need more information and you will get notified once the issue is fixed. Please leave comments for any further questions. Thank you! |
Hello, As I can see this issue got fixed in the scope of the internal Jira ticket AC-11970 by the internal team Based on the Jira ticket, the target version is 2.4.8-beta2. Thanks |
Preconditions and environment
Steps to reproduce
Expected result
Successful basket creation
Actual result
We're getting an error
![screenshot_2](https://private-user-images.githubusercontent.com/49781693/331569683-7ced4d3c-3500-4cbe-8588-dd7cb5304a7c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MTk5NTksIm5iZiI6MTczOTcxOTY1OSwicGF0aCI6Ii80OTc4MTY5My8zMzE1Njk2ODMtN2NlZDRkM2MtMzUwMC00Y2JlLTg1ODgtZGQ3Y2I1MzA0YTdjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDE1MjczOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiM2Y2MTFkNjZjZTJmODVhNWVmMjQ3NmVkNmE0YzNmMTcwNmJkMzQ5MmFmNzRjN2E2N2EwNmRhYmI0NTZjNjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1t7IPuMubfrFuWqHHK2K1pSDZF4kgfPsw6vpg6M7e-w)
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)
![screenshot_3](https://private-user-images.githubusercontent.com/49781693/331571698-6c0eb9dc-5160-4dc7-9a3c-a90d7dbb18e6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MTk5NTksIm5iZiI6MTczOTcxOTY1OSwicGF0aCI6Ii80OTc4MTY5My8zMzE1NzE2OTgtNmMwZWI5ZGMtNTE2MC00ZGM3LTlhM2MtYTkwZDdkYmIxOGU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDE1MjczOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjZjVlZjJlOTNjZGE5NjgwYzI2ZDI5OTczYjJjNzVlNTBjYTY2NmIxNTIxYTRjNWI4YjIwODQwMDllMjA5M2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8rps6xoB1XdlnYbrzdqsRr0qC2RXUu4RrdEMr8mt1zk)
$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: