WooCommerce Role based Payments and Shipping Methods

Bluehost Shared Hosting

WooCommerce Role Based Payment Gateways / Shipping Methods gives site administrators complete control over what each customer sees at checkout. Show or hide any payment gateway and any shipping method per WordPress user role, including logged-out guests, and refine each rule further with cart, destination, customer and schedule conditions.

Version 4.0 is a full rebuild: a new condition engine, a redesigned settings screen, a built-in rule tester, import/export, WP-CLI support and a hardened, audited codebase.

What’s new in 4.0

  • Condition engine – narrow any role rule by cart total, cart contents, destination, specific customers, coupons or a schedule.
  • Redesigned settings screen – a searchable role list on the left, the selected role’s rule on the right. No more scrolling through every role.
  • Rule tester – enter a user ID, login or email and see exactly which rule that customer would hit, before they reach checkout.
  • Import & export – move every rule between stores as a single JSON file.
  • WP-CLI commands – test, import, export, reset and clear the cache from the command line.
  • Safety fallback – if a rule would leave a customer with no way to pay or ship, the original list is restored so checkout never breaks.
  • Audit log – see who changed the rules and when.
  • Hardened throughout – capability and nonce checks on every save, full input validation, prepared SQL and a clean uninstall.

Features

  • Show / hide Payment Gateways by user role
  • Show / hide Shipping Methods by user role
  • Zone aware shipping method rules
  • Guest role support for logged-out shoppers
  • Multiple user role support with role priority
  • Show Selected (allow list) or Hide Selected (block list) per rule
  • Searchable two-pane role navigator with Active / Inactive status
  • Built-in rule tester
  • Import / export all settings as JSON
  • WP-CLI commands for automation
  • Audit log of settings changes
  • Optional debug logging to WooCommerce > Status > Logs
  • HPOS (High-Performance Order Storage) compatible
  • Cart & Checkout Blocks compatible
  • Translation ready, with an up-to-date .pot template included
  • Developer friendly, with filters for every decision point

Condition engine

Switch on Add extra conditions for any role and choose whether the rule applies when ALL conditions are met or when ANY single condition is met. Leave a field blank to ignore it.

  • Cart totals – minimum / maximum subtotal, item count or total weight
  • Cart contents – specific products, product categories, shipping classes or applied coupons
  • Destination & customer – shipping country is / is not one of, or specific customers by user ID
  • Schedule – active weekdays, a daily time window (wrapping past midnight is supported) and a date range, all in your store timezone

Typical uses

  • Offer Cash on Delivery only to logged-in customers, never to guests
  • Give wholesale buyers bank transfer while retail shoppers pay by card
  • Unlock Local Pickup only for orders above a set value
  • Restrict a courier to certain destination countries
  • Run a free shipping method only at weekends, or only during a promotion window
  • Hide a gateway when a specific product or shipping class is in the cart

Requirements

  • WordPress 5.6 or newer (tested up to 7.0)
  • WooCommerce 5.0 or newer (tested up to 11.0.1)
  • PHP 7.4 or newer

Documentation

Full documentation ships inside the download from Envato / CodeCanyon. Open the documentation folder and load index.html in your browser for setup steps, a walkthrough of every condition, WP-CLI usage, the security model, developer hooks and a troubleshooting FAQ.

How updates are delivered

Automatic updates are delivered through the official Envato Market plugin, which links WordPress to your CodeCanyon account. If it is not yet installed or active, the plugin shows a single dismissible notice with a link to set it up. You can also update manually at any time by downloading the latest version from your Downloads page and uploading it. Your saved rules are never affected by an update.

The notice is guidance only: the plugin makes no outbound update checks and does not modify WordPress update transients or global HTTP requests, so it cannot interfere with other plugins.

Need assistance?

Need help to configure, customise or check compatibility? We are happy to help – just contact us by email and include your store URL, WordPress and WooCommerce versions, and a short description of what you are trying to achieve.

Updates

 Version 4.0.0 on 19th August 2026 New: Condition engine - cart totals, cart contents, destination, specific customers, coupons and schedule New: Redesigned settings screen with a searchable role navigator New: Rule tester to preview which rule a customer will hit New: Import and export all settings as JSON New: WP-CLI commands (test, export, import, reset, flush, audit) New: Audit log of settings changes New: Safety fallback so a rule can never leave checkout with no options New: Optional debug logging to WooCommerce > Status > Logs New: Cart & Checkout Blocks compatibility declared Tweak: Rebuilt on a hardened, class-based architecture Tweak: Capability and nonce checks on every save, with full input validation Tweak: Envato Market update notice rebuilt - no outbound update checks, no global HTTP filters, dismissible per user Tweak: Text domain aligned to the plugin slug and a refreshed translation template Tweak: Clean, multisite-aware uninstall Tweak: Tested with WooCommerce 11.0.1 and WordPress 7.0 Fix: Role sections could render twice on the settings screen Fix: Conditions panel layout and field overflow on the settings screen Fix: Save button could be unclickable due to invalid nested form markup Fix: Multiple user roles toggle now reveals the Role Priority field correctly  Version 3.0 on 04th January 2024 New: HPOS Compatibility Tweak: Code Enhanced Tweak: Tested with WooCommerce 8.4.0 and WordPress 6.4.2  Version 2.1 on 16th July 2019 New: Compatible with WooCommerce Better Usability Plugin(https://wordpress.org/plugins/woo-better-usability/) Tweak: Code changed to set the shipping methods properly in cart/checkout Tweak: Allow shipping methods visibility to load via AJAX (some theme load shipping methods via ajax in checkout)  Version 2.0 on 17th June 2019 Fix: Force Configured shipping methods for corresponding user role(s) in cart/checkout(major change) Fix: Unable to select shipping methods in cart/checkout as it reset the selection.  Version 1.3 on 04th October 2018 Fix: Conflict between WooCommerce Germanized Plugin with Force Free Shipping Option Tweak: Revamp function to improve performance  Version 1.2 on 23rd September 2018 Fix: Plugin Activation Problem when WooCommerce Site Wide Activation on Multisite  Version 1.1 on 21st September 2018 Fix: Empty Payment Gateway Display in Checkout Page  Version 1.0 - Initial Release