Skip to content

Issue #5144 - fix add to cart product and validation required attribute for version CE 2.1 #10917

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

Closed
wants to merge 2 commits into from

Conversation

anqaka
Copy link

@anqaka anqaka commented Sep 17, 2017

Fix add to cart product and validation required attribute for version CE 2.1

Description

While ajax add to cart on product page is enable, the validation of required arguments not working properly - is doubled, first it shows errors message in empty inputs, then reload the page.
In version 2.2. this problem doesn't appear.

Fixed Issues (if relevant)

#5144

  1. [CE 2.1] Ajax cart doesn't work #5144: Ajax cart doesn't work

Manual testing scenarios

  1. Add configurable product to cart from product page with required attributes chosen
  2. Add configurable product to cart from product page without required attributes chosen

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Sep 17, 2017

CLA assistant check
All committers have signed the CLA.

@@ -28,7 +28,7 @@
</div>
</div>
<?php endif; ?>
<div class="actions">
<div class="actions siedem">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

siedem 😉

Copy link
Contributor

@Igloczek Igloczek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some debugging stuff is still there.

@omiroshnichenko
Copy link
Contributor

Hi, @anqaka! As I know this issue already fixed in develop branch. I found commit that fix it. Maybe will better if you make backport for this?

@omiroshnichenko
Copy link
Contributor

Also we have internal issue MAGETWO-70892 that currently resolved and in process of delivery.

@anqaka
Copy link
Author

anqaka commented Oct 12, 2017

@omiroshnichenko I've tried to implement solution from the commit you had mentioned but it didn't work in 2.1. I think it requires more changes. So if we already have 2.2 released, we can close this issue

@anqaka
Copy link
Author

anqaka commented Oct 12, 2017

My mistake. In updated 2.1-develop adding to cart using ajax and validation working fine. No more issue here

@anqaka anqaka closed this Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants