Pi Role Based Shipping for WooCommerce
Role Based Shipping for WooCommerce lets you control which shipping methods are available to different user roles during checkout.
Easily hide shipping methods for specific roles across all shipping zones or configure restrictions for individual shipping method instances within specific shipping zones.
Features:
- Disable shipping methods for selected user roles
- Apply restrictions globally by shipping method type
- Configure restrictions for individual shipping method instances
- Support for shipping zones
- Compatible with WooCommerce core shipping methods
- Works with third-party shipping methods that register with WooCommerce
- Simple role selection using a searchable multi-select field
- Guest user support
- Lightweight and easy to configure
- Dynamic shipping method role assignment using system names and pattern matching
Assigning Roles to Dynamic Methods
The plugin provides a powerful « Dynamic Shipping Method Roles » feature that allows you to restrict shipping methods based on pattern matching:
How to Assign Roles to Dynamic Methods:
- Navigate to the plugin settings page and go to the « Dynamic Shipping Method Roles » tab
- Click « Add dynamic method role » button to create a new rule
- Enter the system name of the shipping method you want to restrict
- Select a matching type:
- Exact match: Restricts only the exact shipping method system name
- Starts with: Restricts all shipping methods that start with the specified system name (useful for method families like « flat_rate », « ups », etc.)
- Select the user roles you want to restrict from this shipping method
- Click « Save Settings » to apply the rule
Finding System Names:
To find the system name of a shipping method: 1. Log in to your WooCommerce store as an administrator 2. Go to the checkout page 3. Each shipping method will display its system name in parentheses (e.g., « UPS Ground → System name: ups:1234 ») 4. Copy the exact system name and paste it into the dynamic method form
Use cases:
- Hide Free Shipping from wholesale customers
- Offer Local Pickup only to selected user roles
- Restrict premium shipping methods to logged-in users
- Configure different shipping options for different customer groups
The plugin integrates directly with WooCommerce shipping rates and removes restricted shipping methods before they are displayed at checkout.
