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

use payment method name to make checkbox of agreements more unique #6207 #9717

Merged
merged 2 commits into from
May 27, 2017

Conversation

bka
Copy link
Contributor

@bka bka commented May 21, 2017

Description

Currently, html id for agreement checkboxes are built using

'id': 'agreement_' + agreementId,

But if you have more than one payment method enabled, these checkbox items appear multiple times and html id appears multiple times and is not unique anymore, which introduces some issues for css styling.

auswahl_103

Suggested fix is to use the method name of the current payment method for making this id more unique. However, the way of accessing the parent payment method through ko context parent seems ugly, any other idea, on how to do it?

Fixed Issues (if relevant)

  1. Checkbox IDs for Terms and Conditions should be unique in Checkout #6207

Manual testing scenarios

See steps to reproduce in #6207

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@ishakhsuvarov ishakhsuvarov self-assigned this May 21, 2017
@ishakhsuvarov ishakhsuvarov added this to the May 2017 milestone May 21, 2017
@magento-team magento-team merged commit 3fc2f9e into magento:develop May 27, 2017
magento-team pushed a commit that referenced this pull request May 27, 2017
[EngCom] Public Pull Requests
 - MAGETWO-69379 use payment method name to make checkbox of agreements more unique #6207 #9717
 - MAGETWO-69378 #4272: v2.0.4 Credit memos with adjustment fees cannot be fully refunded with a second credit memo #9715
 - MAGETWO-69375 Can't delete last item in cart if Minimum Order is Enable #6151 #9714
 - MAGETWO-69230 #7279 bill-to name and ship-to name truncated to 20 chars #9654
 - MAGETWO-69155 Fix coding standard in Magento AdminNotification module #9627
@magento-team
Copy link
Contributor

@bka thank you for your contribution. Your Pull Request has been successfully merged

@magento-team
Copy link
Contributor

@bka Thank you for the contribution

hostep pushed a commit to hostep/magento2 that referenced this pull request Feb 7, 2018
… make checkbox of agreements more unique magento#6207 magento#9717

(cherry picked from commit 14b9b98)
@zakgrindle
Copy link

I am running version 2.2.0 and there is still an issue here, specifically with Braintree (core module) stored card details. If you store more than 1 card in your account then the issue occurs again where multiple agreement checkboxes have the same ID:

agreement_braintree_cc_vault_1

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

Successfully merging this pull request may close these issues.

4 participants