How to add WooCommerce shipping by user role

In this article, we’ll cover everything you need to know about how to set up WooCommerce shipping by user role on your WordPress website.

If you use WooCommerce to power your e-commerce store, you probably already know that the plugin offers lots of flexible shipping options out of the box. These include multiple shipping zones, the ability to let customers choose between different WooCommerce shipping methods, and the option to offer free shipping based on the amount spent. However, the free WooCommerce plugin doesn’t let you offer different shipping options to different customers based on their user role.

The solution is to use the WooCommerce Wholesale Pro plugin to charge role-based shipping fees. Keep reading to learn how you can add WooCommerce shipping by user role to your e-commerce store in under 15 minutes 🚀.

Why offer WooCommerce role-based shipping?

Depending on the type of e-commerce store you’re running, you might consider offering different shipping methods to different customers based on their user role. Here are some use case scenarios where it makes sense to set up WooCommerce shipping by user role:

  • WholesaleLet’s say you sell to both retail customers and wholesale buyers. You could offer free shipping to your retail users only, or offer additional bulk shipping or table rate shipping options for logged-in wholesale users. Alternatively, you could offer free shipping to your top-tier wholesale user roles only. You would simply move wholesale users to the top-tier as a special benefit after they spend a certain amount at your store. Normal wholesale users would continue to pay for shipping i.e. they’ll only see flat rate shipping.
  • Members-only sitesIf you run a membership shop alongside your public-facing store, you could sell to regular customers and charge them for shipping while members get access to benefits such as discounted (or free) shipping options. This way, you don’t have to absorb shipping costs for all customers.
  • Logged-in customersYou can offer discounted shipping rates to customers who are logged into their user accounts. In this case, guest users (i.e. logged out users) would have to pay the full shipping rates. In other words, you can pass on shipping costs to guest users.

There are plenty of ways you can set up WooCommerce shipping by user role depending on the type of store you’re running and the different customers you sell to. And the easiest way to do this is by using the WooCommerce Wholesale Pro plugin.

WooCommerce Wholesale Pro - the perfect way to restrict shipping by user role

WooCommerce Wholesale Pro makes it incredibly easy for e-commerce store owners to set up shipping by user role. The plugin lets you create an unlimited number of user roles and assign different shipping options to each one.

For example, you can decide which shipping options to make available for retail and wholesale customers. You might offer local pickup options and free shipping to your wholesale customers and free shipping to retail customers. This is a great way to personalize the customer experience your WooCommerce store delivers based on the customer’s user role.

In addition, you can use the WooCommerce Wholesale Pro plugin to charge different prices per product and offer customers different payment gateways (i.e. payment methods) based on their user role. This is great for when you need to give wholesale customers the option to make payments via invoice or direct bank transfer, while retail customers can only pay using an online payment gateway such as credit card, Stripe, or PayPal.

How to add WooCommerce shipping by user role

For this tutorial, we’ll assume you already have the free WooCommerce plugin installed on your WordPress website.

Step #1: Get the WooCommerce Wholesale Pro plugin

Get the WooCommerce Wholesale Pro plugin and install and activate it on your WordPress website. You’ll receive the plugin files along with a license key in the confirmation email. Activate your license key in the setup wizard.

Step #2: Create user roles

WooCommerce itself comes with a basic 'customer' role, and WooCommerce Wholesale Pro creates your first 'wholesale' role when you first install it. You can create as many additional user roles as you’d like.

To do this, head to WooCommerceSettingsWholesaleRoles and click the Add new role button to create a new WooCommerce user role. For example, you might create an extra custom role for Wholesale Customers:

Wholesale customers user role

You can give each user role a display name, discount, and choose to enable product-specific pricing.

Once you’ve created the user role, click the Save changes button.

Step #3: Configure shipping zones in WooCommerce

Go to WooCommerceSettingsShippingShipping zones to set up regions and shipping methods from the shipping settings screen. You can create custom shipping zones based on your online store and the shipping service you’d like to offer. For example, you might create a Local Shipping Zone and offer customers local pickup and free shipping options. You can also add shipping zones for sales within your country, international orders, etc.

For each shipping zone, add as many shipping methods as you like:

Add shipping method in WooCommerce

To do this, click the Add shipping method button and use the dropdown menu to select the shipping method you want to add.

Shipping zones in WooCommerce

If you want to charge different shipping prices to different user roles, then enter each one as an additional shipping option. For example, if you're charging a flat rate of $9.99 to normal customers and $19.99 to wholesale users, then create two different flat rate options.

Once you’ve added all the shipping methods for that zone, click the Save changes button to continue. Repeat the process to add shipping options to your other zones.

Step #4: Assign user roles to available shipping methods

Now you’ve set up shipping zones and shipping methods, head over to WooCommerceSettingsShippingShipping roles in the WordPress admin.

You’ll see a list of all the different shipping methods, divided into separate sections for regular and wholesale users:

WooCommerce wholesale shipping options

Offer different shipping methods per user role

By default, wholesale roles will be assigned to the wholesale shipping options and other roles will be assigned to the regular shipping options. Feel free to change this as needed to control which user roles can see each shipping option. When you delete user roles from specific shipping methods, users with these roles will be unable to see the shipping method on the WooCommerce checkout page.

For example, you might offer local pickup options to Wholesale Customers and free shipping to the Customer role. To do this, simply remove all the roles that should not have access to each shipping method.

Pro tip: It’s a good idea to add the Administrator (or the Shop Manager) user role to each shipping method. This makes it easy for store owners to test out the different shipping options to make sure everything is working properly.

Preview

That’s it! When you add products to your shopping cart and proceed to the checkout page, you should see the correct shipping methods for your user role. More specifically, here’s what you’ll see if you’re a guest user, retail customer, and wholesale customer:

Bonus: Show shipping costs per user role on the product page

Before we finish, I'll give you a tip which will make it much easier for your users to see the shipping costs for their role.

Normally, WooCommerce is terrible at this because it only displays shipping costs on the checkout page. You can fix this by using the WooCommerce Shipping Calculator plugin to let customers enter their location and view the cost for their role directly on the product page.

WOOCOMMERCE PRODUCT PAGE SHIPPING CALCULATOR

This significantly improves on the default WooCommerce shipping calculator by making shipping information available when the customer needs it the most.

If the customer is logged into their account then they will see the correct shipping cost for their user role. Perfect!

Next steps

Although WooCommerce offers tons of shipping options out of the box, it doesn’t let you set up shipping by user role. The easiest way to do this is by using a WooCommerce shipping plugin with the extra features you need - and WooCommerce Wholesale Pro is perfect for this.

You can create as many user roles as you’d like, configure WooCommerce shipping zones, and assign user roles to the available shipping methods. It’s incredibly easy to set up and you don’t have to mess around with code.

You get:

  • Quick plug-and-play setup for the plugin.
  • In-depth documentation (there's absolutely no way to get it wrong).
  • Expert technical support if you need any help.
  • 30-day money-back guarantee. Love it or get a full refund!

Get the WooCommerce Wholesale Pro plugin and add WooCommerce role-based shipping to your online store.

Please share your thoughts...

Your email address will not be published. Required fields are marked *