Table of Contents
Problem Description #
After setting certain payment gateways to be available (or hidden) for products/categories/tags, checkout still shows all gateways or shows incorrect ones, meaning the plugin’s filtering logic seems not to work.
Common Symptoms
- You configured product/category-based restrictions, but at checkout all payment methods still appear.
- The “excluded” payment methods are still available.
- Changes don’t reflect after saving settings.
Cause
- Misconfiguration: selecting both “include” and “exclude” options for the same gateway/category combination — which conflicts. Developers warn that include and exclude should not be combined for same rule. WPFactory
- Browser caching or page cache / server cache or shop caching plugin preventing updated gateway list from loading. WPFactory+1
- Not saving or reloading checkout/cart after making changes, causing stale data.
Solution (step-by-step)
- Go to WooCommerce → Settings → Payment Methods by Product & Country.
- For each payment gateway, for each product/category/tag rule: ensure you use either “Include” or “Exclude”, not both simultaneously.
- Save the settings.
- Clear any cache — including browser cache, WordPress caching plugin, server or CDN cache. Then force‑refresh checkout page (e.g. Ctrl+Shift+R).
- Test with a clean cart (add product to cart, then go checkout) to verify gateways reflect rule.
- If still incorrect: disable other payment‑management plugins or custom code (especially those that modify checkout / gateways) and retest.
Prerequisites
- Latest version of the plugin. Developers maintain up-to-date compatibility. WPFactory+1
- Ensure WooCommerce payment gateways are enabled in WooCommerce → Payments (the plugin builds on enabled gateways).
Additional Notes
- Document your rules (which categories/tags use which gateways), helps debugging when issues arise.
- After bulk changes (many categories/products), always re‑save and clear caches.
