Skip to content

[Backport] Switch updatecart qty input validators to dynamic #14911

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

Conversation

rogyar
Copy link
Contributor

@rogyar rogyar commented Apr 30, 2018

Original PR: #13462

Description

Currently, the edit cart product input has hardcoded validators which differ from the main PDP page. What is the reasoning for this? This prevents custom qty validators applied on normal PDP from applying when you update said product qty.

updateCart.phtml vs addtocart.phtml

This PR matches both updatecart.phtml and addtocart.phtml qty input validators. Now when you target, afterGetQuantityValidators it will apply to both inputs.

Maybe I am mistaken and there is a real reason they did not originally match?

Manual testing scenarios

  1. Check DOM to see outputted validators on PDP and on PDP edit.
  2. Both will match.

@magento-engcom-team magento-engcom-team added this to the April 2018 milestone Apr 30, 2018
@magento-engcom-team magento-engcom-team added Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Progress: accept labels Apr 30, 2018
@magento-engcom-team magento-engcom-team merged commit 838f08f into magento:2.1-develop Apr 30, 2018
@magento-engcom-team
Copy link
Contributor

Hi @rogyar. Thank you for your contribution.
Changes from your Pull Request will be available with the upcoming 2.1.15 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants