-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Issue with configurable products in widgets, not added to cart #19315
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
Hi @jcourtei. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @jcourtei do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@jcourtei suggested code changes can be provided directly as pull request. Thanks for bug report! |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
@engcom-backlog-nazar Thank you for verifying the issue. Based on the provided information internal tickets |
Hi @gelanivishal. Thank you for working on this issue.
|
Hi @jcourtei. Thank you for your report. The fix will be available with the upcoming 2.3.1 release. |
Uh oh!
There was an error while loading. Please reload this page.
Preconditions (*)
Version 2.2.6 (Community Edition).
Steps to reproduce (*)
Expected result (*)
User should see the product page with the message "You need to choose options for your item."
Actual result (*)
User is redirected to the cart page and the product is not added to the cart.
I think the issue is in vendor/magento/module-catalog/view/frontend/templates/product/widget/new/content/new_grid.phtml.
I replaced :
<?php if ($_item->getTypeInstance()->hasRequiredOptions($_item)): ?>
with :
<?php if (!$_item->getTypeInstance()->isPossibleBuyFromList($_item)): ?>
This way it is consistent with Magento\Catalog\Block\Product\AbstractProduct->getAddToCartUrl(), since this method uses isPossibleBuyFromList() to choose the url.
Several templates are concerned with this issue :
The text was updated successfully, but these errors were encountered: