Title: User role based shipping methods
Author: techsarai
Published: <strong>September 19, 2018</strong>
Last modified: March 31, 2024

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/user-role-based-shipping-method.svg)

# User role based shipping methods

 By [techsarai](https://profiles.wordpress.org/techsarai/)

[Download](https://downloads.wordpress.org/plugin/user-role-based-shipping-method.3.1.0.zip)

 * [Details](https://wordpress.org/plugins/user-role-based-shipping-method/#description)
 * [Reviews](https://wordpress.org/plugins/user-role-based-shipping-method/#reviews)
 *  [Installation](https://wordpress.org/plugins/user-role-based-shipping-method/#installation)
 * [Development](https://wordpress.org/plugins/user-role-based-shipping-method/#developers)

 [Support](https://wordpress.org/support/plugin/user-role-based-shipping-method/)

## Description

It will allow you to hide WooCommerce Shipping methods based on user role and country.
It is globally compatible i.e. You can use it with Flat Rate / Free Shipping / Local
Pickup or any other third party shipping plugin.
 It also provides you an option
to show only Free Shipping when Free Shipping is available during checkout by removing
all other shipping methods.

Do you want to show shipping methods based on user role?
 Do you want to show shipping
methods based on shipping country? Are you still struggling to set up the Woocommerce
Shipping Cost based on User Role and Destination Country ?

Here’s the solution for your requirement. Setup Flat Rate / Free Shipping or Shipping
Cost using any third Party Plugin and Manage them Which Shipping Cost need to be
shown to which user and for which country.

#### Features

 * Display shipping methods based on user role
 * Display shipping methods based on shipping country
 * Option to hide all other shipping methods and shown only Free Shipping when Free
   Shipping is available during checkout

### Introduction

Display WooCommerce shipping methods based on User Role and country, Option to hide
all other shipping methods when Free Shipping is available.

## Screenshots

[⌊General Settings⌉⌊General Settings⌉[

General Settings

[⌊Rules Settings⌉⌊Rules Settings⌉[

Rules Settings

[⌊Value of Shipping Method to hide⌉⌊Value of Shipping Method to hide⌉[

Value of Shipping Method to hide

[⌊Shipping method hidden⌉⌊Shipping method hidden⌉[

Shipping method hidden

[⌊Multiple shipping method rule configuration for single user role⌉⌊Multiple shipping
method rule configuration for single user role⌉[

Multiple shipping method rule configuration for single user role

[⌊Shipping method hidden based on label / name⌉⌊Shipping method hidden based on 
label / name⌉[

Shipping method hidden based on label / name

## Installation

Follow the below instructions to install the plugin on your website: 1. Download
and unzip the latest release zip file. 2. Upload the entire plugin directory to 
your /wp-content/plugins/ directory. 3. Activate the plugin through the Plugins 
menu in WordPress Administration.

You can also use WordPress uploader to upload plugin zip file in menu Plugins ->
Add New -> Upload Plugin. There you can Activate the plugin once it is uploaded 
successfully.

## FAQ

### Compatibility?

Globally Compatible. It is compatible with all the shipping methods offered by WooCommerce
and third party plugins.

### How to display Free Shipping only?

Go to General section in plugin settings page.
 Enable the plugin and under Hide
shipping methods select option to Show Free Shipping Only, hide other shipping methods.
Note It’s independent of rule matrix. It will only work when Free Shipping is available
during checkout.

### How to setup the plugin?

Go to plugin settings page. You can navigate it from plugin page.

I will try to explain it by taking a sample case?

Woocommerce store info: Assume our store offer three shipping methods – Standard
Delivery, Express Shipping, One Day Shipping.

Case 1: I want to show One Day Shipping method to Administrator user role in the
USA.

To achieve it add a new rule in Rules settings page.
 * Select Administrator in 
User Role field. * Select United States in Countries field. * Select Label in Action
On Shipping Method field. * Add Standard Delivery and Express Shipping methods in
Shipping Methods field seperated by semicolon like – Standard Delivery ; Express
Shipping. * Click on save changes. * Now go to shop page add any product and recalculate
the shipping cost by changing the address, Standard Delivery and Express Shipping
method won’t be shown.

Case 2: I want to show Standard Delivery, Express Shipping method to Guest user 
role in the USA.

To achieve it add a new rule in Rules settings page.
 * Select Guest in User Role
field. * Select United States in Countries field. * Select Label in Action On Shipping
Method field. * Add One Day Shipping in Shipping Methods field. * Click on save 
changes. * Now go to shop page add any product and recalculate the shipping cost
by changing the address, One Day Shipping method won’t be shown.

Here’s the video showing the above cases.

### Plugin not working after setting the plugin?

If you have done the plugin setup, and you still don’t see any change in cart/checkout
page then please try to recalculate the shipping cost by changing the address because

by default woocommerce will show you the cached shipping methods.

### Sample Video

## Reviews

![](https://secure.gravatar.com/avatar/3ff03cde965f99e9c133870d3be832462262b84ae5ea8f5b539f6dd9e05d860a?
s=60&d=retro&r=g)

### 󠀁[Does what it’s supposed to!](https://wordpress.org/support/topic/does-what-its-supposed-to-74/)󠁿

 [mrv63](https://profiles.wordpress.org/mrv63/) April 23, 2024

I tried using some custom code and couldn’t get a certain shipping method to hide
from regular users and guests. This plugin came to the rescue! The UI is a little
confusing so here’s a tip for setup: add the user roles you want to HIDE the shipping
method from. I initially tried adding the user roles I wanted the shipping method
to show for. Devs are responsive and helped me fix my issue. I requested that the
devs write some better documentation and try to make the UI more clear on their 
plugin so they’ll have to deal with less support requests.

![](https://secure.gravatar.com/avatar/8a0e030245906b3677298a063e53f8a2e4fa0a17b0ca88e818baeaa7bbdf8ff5?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-15177/)󠁿

 [fischervlada](https://profiles.wordpress.org/fischervlada/) January 6, 2023

Great free plugin!

![](https://secure.gravatar.com/avatar/8f50129dcf35aad9a463ed3eb69b565694ec45988d84f34aee44b96026e948b2?
s=60&d=retro&r=g)

### 󠀁[Don’t work](https://wordpress.org/support/topic/dont-work-353/)󠁿

 [MarieveC](https://profiles.wordpress.org/marievec/) January 19, 2022

I’ve tried a lot of different settings, I’m unable to make it work. I’ll go with
pure PHP instead.

![](https://secure.gravatar.com/avatar/d17fa2833a9716d0cbe3a146643ea11f904f7203913ac25d3bff628d31c5ea3e?
s=60&d=retro&r=g)

### 󠀁[Confusing](https://wordpress.org/support/topic/confusing-31/)󠁿

 [Code Zeno](https://profiles.wordpress.org/codezeno/) November 9, 2021

Super confusing plugin. I thought it was suppose to allow you to set which shipping
methods to show for different roles but it’s the exact opposite. It allows you to
set what shipping methods to HIDE for the role. No where is this mentioned except
for the plugin tags. Once you work that out it works great, also needed to dig through
the plugin images here to see what data to use for each shipping method. Mine where
flat_rate:1 and flat_rate:10

![](https://secure.gravatar.com/avatar/e5bbbf303873d943673b437d49a6a3741eefc028d078595889e83329a62249ae?
s=60&d=retro&r=g)

### 󠀁[Good plugin](https://wordpress.org/support/topic/good-plugin-5382/)󠁿

 [madideas](https://profiles.wordpress.org/madideas/) July 20, 2021

Does what I need, ie different roles get different shipping prices, however could
do with some documentation or something a bit nicer in setup to work out how to 
set the shipping rate. As my requirement is simple I could do it by guesswork.

![](https://secure.gravatar.com/avatar/3f0b91302a5aeee4944035764d6baa1cbf018fb0dc458c3b62f474398116ad8e?
s=60&d=retro&r=g)

### 󠀁[How does it work?](https://wordpress.org/support/topic/how-does-it-work-94/)󠁿

 [Darren](https://profiles.wordpress.org/wizz99/) July 7, 2021

Does someone have any help files on this plug-in? How do I set shipping based on
user role?

 [ Read all 9 reviews ](https://wordpress.org/support/plugin/user-role-based-shipping-method/reviews/)

## Contributors & Developers

“User role based shipping methods” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ techsarai ](https://profiles.wordpress.org/techsarai/)

[Translate “User role based shipping methods” into your language.](https://translate.wordpress.org/projects/wp-plugins/user-role-based-shipping-method)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/user-role-based-shipping-method/),
check out the [SVN repository](https://plugins.svn.wordpress.org/user-role-based-shipping-method/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/user-role-based-shipping-method/)
by [RSS](https://plugins.trac.wordpress.org/log/user-role-based-shipping-method/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.

#### 1.0.1

 * Content Updated

#### 1.0.2

 * Guest user support added in rule

#### 1.0.3

 * Compatibility with WordPress 5.3.2 & WooCommerce 4.0

#### 1.0.4

 * Improved security

#### 1.0.5

 * Compatibility with WordPress 5.7.2 & WooCommerce 5.3.0

#### 2.0.0

 * Compatibility with WordPress 5.9
 * Compatibility with WooCommerce 6.1.1
 * New option to hide shipping method based on shipping method name / title / label

#### 2.0.1

 * Handled PHP compatibility issue
 * Compatibility with WordPress 6.1.1
 * Compatibility with WooCommerce 7.5.1
 * Improved plugin page readme content
 * Tested with WordPress 6.4.3
 * Tested with WooCommerce 8.5.2

#### 3.0.0

 * Feature to hide all the shipping methods, and show only free shipping method,
   when free shipping is available during checkout
 * Readme content change
 * Tested with WooCommerce 8.6.1

#### 3.1.0

 * Compatibility with WooCommerce high performance order storage feature
 * Tested with WooCommerce 8.7.0

## Meta

 *  Version **3.1.0**
 *  Last updated **2 years ago**
 *  Active installations **400+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.4.8**
 *  PHP version ** 7.0 or higher **
 *  [Advanced View](https://wordpress.org/plugins/user-role-based-shipping-method/advanced/)

## Ratings

 4.4 out of 5 stars.

 *  [  7 5-star reviews     ](https://wordpress.org/support/plugin/user-role-based-shipping-method/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/user-role-based-shipping-method/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/user-role-based-shipping-method/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/user-role-based-shipping-method/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/user-role-based-shipping-method/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/user-role-based-shipping-method/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/user-role-based-shipping-method/reviews/)

## Contributors

 *   [ techsarai ](https://profiles.wordpress.org/techsarai/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/user-role-based-shipping-method/)