⌘ K

Search

Search portal content

Dreamfox MediaDreamfox Media
⌘ K

Search

Search portal content

Dreamfox MediaDreamfox Media
      • How to Set Category-Based Payment Gateway Rules
      • How to Set Tag-Based Payment Gateway Rules
      • Using Include and Exclude Logic
      • Configuring Fallback Behavior
    • Automatic Installation
    • Using with my Wordpress theme
    • Can I use this plugin with my existing Wordpress theme?
    • The plugin is not working
    • How to work with payment gateways per category
    • Payment Options Not Visible in Sidebar
    • Where can DFM Gateway plugin for WooCommerce be used for?
    • Where can I set different payments methods?
    • Automatic Installation free DFM Payment plugin for WooCommerce
    • Manual Installation Method 1 DFM Payment Gateway plugin for WooCommerce
    • Manual Installation Method 2 DFM Payment Gateway plugin for WooCommerce
    • How to Use the Tag Option
  1. Home
  2. WooCommerce Plugins
  3. Payment gateway per product
  4. Configuring Gateway Rules

How to Set Tag-Based Payment Gateway Rules

Use WooCommerce product tags to define flexible payment gateway visibility rules across your catalog.

How to Set Tag-Based Payment Gateway Rules

Use WooCommerce product tags to define flexible payment gateway visibility rules across your catalog.

How to Set Tag-Based Payment Gateway Rules

Tag-based rules are a Premium feature that let you control payment gateway visibility using WooCommerce product tags. Tags are great when a product belongs to multiple categories but needs its own payment rule — or when you want a rule that cuts across your entire catalog.

Where to configure tag rules

  1. In your WordPress dashboard, go to Products → Tags.
  2. Click on the tag you want to configure (or Edit next to it).
  3. Scroll down to the Payment Gateways section on the tag edit screen.
  4. Select the gateways you want to allow for products with this tag.
  5. Click Update to save.

How tag rules interact with product and category rules

The plugin applies rules from all three levels — product, category, and tag — and then intersects them. Only gateways that appear in every applicable rule are shown at checkout. For example:

  • A product allows: PayPal, Stripe
  • The product's tag allows: Stripe, Bank Transfer
  • Result at checkout: Stripe only (the only gateway present in both rules)

If the intersection results in zero matching gateways, the fallback behavior kicks in. See Configuring Fallback Behavior for details.

When to use tags vs. categories

  • Use categories when the rule maps to a clear product group (e.g., all digital downloads, all B2B items).
  • Use tags when you need a cross-cutting rule that applies regardless of category (e.g., a "fragile-shipment" tag that restricts cash on delivery across multiple categories).
  • Use product-level rules when a single SKU needs an exception to the category or tag rule.

Tip: keep tags focused

Avoid assigning conflicting rules through tags. If Tag A allows PayPal and Tag B excludes PayPal, and a product has both tags, the intersection logic will resolve it — but it can be hard to debug. Keep each tag's payment rule as specific as possible.

On this page
  • How to Set Tag-Based Payment Gateway Rules
  • How to Set Tag-Based Payment Gateway Rules
  • Where to configure tag rules
  • How tag rules interact with product and category rules
  • When to use tags vs. categories
  • Tip: keep tags focused
How to Set Category-Based Payment Gateway Rules

Assign payment gateways to entire WooCommerce product categories instead of editing products one by one.

Using Include and Exclude Logic

Fine-tune checkout with include/exclude gateway logic — control exactly which payment methods appear or are hidden.

Powered by initdesk