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

Removes the PPExp Toggle Section for a Check Only level #87

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

JarrydLong
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

The PayPal Express Add On adds a toggle section which doesn't get removed for levels that only allow a Check payment.

This removes that section where necessary.

How to test the changes in this Pull Request:

  1. Activate PMPro, PayPal Express Add On and Pay By Check Add On
  2. Set a level to only allow payment by Check
  3. The toggle/radio buttons should no longer show on checkout

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully run tests with your changes locally?

Changelog entry

Check only levels no longer show multiple gateway options

### All Submissions:

* [x] Have you followed the [Contributing guideline](https://github.com/strangerstudios/paid-memberships-pro/blob/master/.github/CONTRIBUTING.md)?
* [x] Does your code follow the [WordPress' coding standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/)?
* [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/strangerstudios/paid-memberships-pro/pulls) for the same update/change?

<!-- Mark completed items with an [x] -->

<!-- You can erase any parts of this template not applicable to your Pull Request. -->

### Changes proposed in this Pull Request:

The PayPal Express Add On adds a toggle section which doesn't get removed for levels that only allow a Check payment.

This removes that section where necessary.

### How to test the changes in this Pull Request:

1. Activate PMPro, PayPal Express Add On and Pay By Check Add On
2. Set a level to only allow payment by Check
3. The toggle/radio buttons should no longer show on checkout

### Other information:

* [x] Have you added an explanation of what your changes do and why you'd like us to include them?
* [x] Have you successfully run tests with your changes locally?

<!-- Mark completed items with an [x] -->

### Changelog entry

Check only levels no longer show multiple gateway options
@dparker1005 dparker1005 merged commit 4a112a8 into strangerstudios:dev Aug 11, 2023
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.

2 participants