⌘ K

Search

Search portal content

Dreamfox MediaDreamfox Media
⌘ K

Search

Search portal content

Dreamfox MediaDreamfox Media
      • How Mixed Cart Resolution Works
      • Rule Priority: Product vs. Category vs. Tag
    • 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. Mixed Carts & Rule Logic

How Mixed Cart Resolution Works

Learn how the plugin intersects gateway rules across multiple products to determine what shows at checkout.

How Mixed Cart Resolution Works

Learn how the plugin intersects gateway rules across multiple products to determine what shows at checkout.

How Mixed Cart Resolution Works

One of the most important behaviors to understand is what happens when a customer adds multiple products to their cart, each with different payment gateway rules. This is called a mixed cart.

The intersection rule

The plugin takes every product in the cart, looks up its applicable rules (product level → category level → tag level), and then keeps only the gateways that are allowed by every single product. This is called an intersection.

Example:

Product Allowed gateways
Digital eBook PayPal, Stripe
Physical item Stripe, Bank Transfer

The intersection of those two sets is Stripe only — that's what the customer sees at checkout.

Why intersection and not union?

Union logic (showing any gateway allowed by any product) would mean a gateway restricted for product A could still appear because product B allows it. That defeats the purpose of assigning rules in the first place. Intersection ensures every product's restriction is respected.

What if the intersection is empty?

If no single gateway satisfies all products in the cart, the intersection is empty and the fallback behavior takes over:

  • Free version / default setting: Standard WooCommerce gateways are shown.
  • Premium with "show no payment methods": The payment step is left blank and checkout cannot proceed.

See Configuring Fallback Behavior for how to control this.

Practical tip: design rules to overlap

If your store commonly has mixed-cart purchases, make sure at least one gateway appears in all relevant rules. For example, if Stripe is your primary gateway and you always want it available, include it in every product, category, and tag rule — that guarantees it survives the intersection regardless of what else is in the cart.

On this page
  • How Mixed Cart Resolution Works
  • How Mixed Cart Resolution Works
  • The intersection rule
  • Why intersection and not union?
  • What if the intersection is empty?
  • Practical tip: design rules to overlap
Configuring Fallback Behavior

Set what happens at checkout when no payment gateway rule matches the products in the cart.

Rule Priority: Product vs. Category vs. Tag

Understand how product-level, category-level, and tag-level rules interact and which takes precedence.

Powered by initdesk