Skip to content

Add Contact Module setting to new settings UI (4799) #3447

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

Open
wants to merge 8 commits into
base: trunk
Choose a base branch
from

Conversation

stracker-phil
Copy link
Collaborator

Description

Added a new toggle option to the "Settings" tab in the new UI admin page.

  • The toggle is gated by a new feature flag
  • When the feature flag is active, the toggle appears in the "PayPal Settings" accordion
  • Default value is currently set to false/off
  • No logic is attached to the toggle - it's saved to the DB without doing anything else

Feature flag

How to activate the feature flag:

  • Set env variable PCP_CONTACT_MODULE_ENABLED to "1"
  • Return true via WP filter woocommerce.feature-flags.woocommerce_paypal_payments.contact_module_enabled

Steps to Test

  1. Activate the feature flag / ensure to use the new UI
  2. Go to "WooCommerce → Settings → Payments → PayPal"
  3. Navigate to tab "Settings", open the accordion "PayPal Settings"
  4. The new toggle appears below the toggle "Instant payments only"

Screenshots

image

# Conflicts:
#	modules/ppcp-wc-gateway/services.php
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