Skip to content
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

AJAX Add To Cart Is Not Working For Configurable Product In List page #10232

Closed
sabarivenkatesankrish opened this issue Jul 13, 2017 · 1 comment

Comments

@sabarivenkatesankrish
Copy link

sabarivenkatesankrish commented Jul 13, 2017

Hi all,

For newly created configurable products, the ajax add to cart is not working in list page. Instead it redirect to the product detail page. While checking about this, in run time the product object instance is having the field(Not a product attribute) name required_options. This field is set as 'true' for all the cases while creating and editing a product. If this field is enabled it will redirect to product detail page and if it is disabled the ajax cart url will be provided the button. So the product will add to the cart without redirecting itself. I don't know why this field is enabled even if we select all the options for the configurable product.

Preconditions:

  1. Ubuntu 16.04
  2. Magento 2.1.7

Steps to reproduce:

  1. Create a configurable product with configurable options(virtual products).
  2. In front end go to the category page which is having the created configurable product
  3. Select configurable options(size, color...) and click Add to Cart button.

Expected result:

  1. Should be added in to the cart without loading itself(AJAX).

Actual result:

  1. It redirects to the product detail page and asks again to choose the options.

Any comments and suggestion would be appreciated.
Thanks,

@veloraven
Copy link
Contributor

@sabarivenkatesankrish thank you for your feedback.
But I'm closing this issue as a duplicate of #8470.

@veloraven veloraven marked this as a duplicate of #8470 Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants