Monday, May 16th, 2022

How to Restrict Shipping for Logged-in Users in WooCommerce: Register Visitors and Receive Benefits

Anyone who has ever been part of a supply and/or distribution chain will attest to the gruesome dole that is the logistics game. This year has been particularly difficult for everyone involved, from manufacturers, distributors and transporters to ultimately the customers themselves. It seems that everything is constantly behind the times, no matter what is happening. At the same time, both local and international transportation costs have increased globally, and the issues are escalating.

If you’re running an eCommerce business that handles shipping, among other things, why shouldn’t you offer multiple tiers of service—in speed, or cost, or both.

We will focus on the cost aspect of the entire process, specifically, how to limit your shipping options to logged-in users only, or alternatively, how to give logged-in users special discounts compared to guest customers. All of this can be easily achieved using just one plugin (assuming you’re running your store through WooCommerce) – WooCommerce Table Rate Shipping.

Benefits of registration

More and more eCommerce businesses, whether it’s one-time stores or subscription-based service providers, are running forum sites like a decade ago – you need to register. The reasons behind this practice are too many to mention, but amongst everything, perhaps the most noticeable is the abundance of data we receive from registered users as compared to non-registered users.

Having data about their spending habits, product preferences, locations, etc. helps a lot when deciding which direction to go with your site. It is for this reason that you will provide some benefits to your registered users and promote it so that even more people can register, especially if there is no fee, that is, registration is free and does not require anything else Is. Users instead of filling out a short form.

Login vs Guest

Assuming that you’ve decided to give logged-in users and guests separate terms with respect to shipping, it’s time to figure out how to apply this. With WooCommerce Table Rate Shipping, only a few inputs, a few clicks, and a few check boxes are required.

Before going through the ban process, the first thing you need to do is set up a shipping zone which can be done within WordPress, regardless of the plugin that only increases your options for said shipping zone.

WooCommerce Table Rate Shipping Plugin Shipping Area

Once a shipping zone is created, you need to navigate to the shipping method section, where you enable table rates and all the additional functions that come with it.

Within the specified shipping method, you will want to make two choices. You can name them any way you want, but, for the sake of clarity, we’ve gone with “logged in only” and “not logged in.” Make sure both methods are enabled for the function to take effect on the frontend. Alternatively, if you want to completely disable shipping services for guests, you’ll either disable the “not logged in” method or skip creating it in the first place.

While we recommend providing benefits for registration to registered users, we do not recommend limited functions for guest users. A general rule of thumb is to always go the positive route (discounts, extra features, reward and/or loyalty systems, etc.), rather than foregoing key features, i.e. a user-friendly approach.

WooCommerce Table Rate Shipping Plugin Shipping Region US

Now, these two methods, in essence, represent a set of rules that are activated once a user accesses your site and meets a condition (in this case, “login”/”login”). Not in” status). By detailing each method of shipping, we access those rules and are able to change them.

WooCommerce Table Rate Shipping only for logged-in users option

In our case, we will charge separate shipping costs for logged-in users and guests, so the process is extremely simple. The Table Rates section is where we’ll select all of our products, set a base amount for our shipping costs, and optionally insert a “Log In” label (this is just a note you can use to help If you are able to have a large number of rules).

To finish, check the box labeled “Only for logged in users”, and you’re all set. Keep in mind that this is a basic example of a fixed shipping rate for all products in the database. You can do wonders with specific classes of products with varying rates, special rates for cumulative quantities, and much more.

On the other hand, you’ve got your “not logged in” method which, when extended, has exactly the same interface, but you’ll be putting in different values. In our case, this simply means a higher base amount/cost, a different label, and naturally, not checking the box “Only for logged in users”.

WooCommerce Table Rate Shipping Shipping Method Settings

Other changes can be made within the table rates as before – special rates for different classes of products, total cost, etc.


You’ve done everything function-wise from the backend, but now you’ll need to figure out how you want to view it on the frontend. Without making any changes, logged-in users will be able to see both methods and choose which of them they want to see their cart, while guests will only be able to see the “not logged in” method and therefore have no option to choose from.

Cart total with 2 shipping options

If you’re okay with this setup, you can leave it as is and go about managing other things on your site. However, if you want your registered users to only be incognito to the premium option, you can make it so that all others remain hidden.

Enabling the hidden option couldn’t be easier – just check the box labeled “Hide others” and all other methods won’t be shown to logged-in users. This is especially useful when you’re driving multiple modes at once, but don’t want to overcrowd your cart display with unnecessary information.

Cart totals with 1 shipping option

The way it looks now in our example is “Clean Look” – the site doesn’t give the registered user a choice, only displays their discounted shipping cost, discarding everything else.


As we mentioned, to run a successful business (eCommerce or otherwise), you need data. When we’re talking about online businesses, the fastest way to get relevant data is to let users give it to you themselves.

By registering on your site, they freely give out things like their email and location, along with easy tracking of all actions on your pages, as well as receive data about their expenses, favorite products, etc.

High shipping costs for guests provide that little incentive some may need to register, and the WooCommerce Table Rate Shipping plugin gives you every chance to make small changes that can lead to big results.

Source link