Configure WooCommerce UPS Shipping Methods by Country Code


While dealing with a WooCommerce store there is a lot of pressure to deliver products to the customers. Product shipping has always been a challenge for online store owners across the globe.

Based on the customer’s address and the shipping methods that are available for that location, sometimes store owners may choose to configure shipping methods in a different manner.

But the question remains- How..?

This article will cover how you can customize the shipping option’s visibility for your customers. By using WooCommerce UPS Shipping plugin, let’s see how you can configure shipping methods according to your business needs.

Before digging deep into the matter, let us consider a scenario.

A Customer’s Dilemma- Lucy and Her Toy Store

Consider the scenario of Lucy, the owner of an online Wooden Toy Store based in California, U.S.A. According to her business case, a huge chunk of her customer base is in Mexico and U.S.A.

She uses UPS Next Day Air and UPS 2nd Day Air shipping to deliver products within the country. Since she is having a small business, she has to make sure the customers are happy. As a result, she chose specifically these two delivery options so that the customers won’t have to wait for a longer period for their orders.

As for the international delivery, she wants something which is suitable for her customers in Mexico. Hence, the UPS Standard delivery option offers to ship between the US and Mexico (except Alaska and Hawaii). This shipping method is best suitable for international delivery with cheaper charges for less urgent packages.

You might be wondering if everything was economical and working wonders for Lucy then why was she worried?

Let us check it out!

The Issue

In the case of UPS Standard shipping, it supports delivery between the US and Mexico. But it also supports shipping within some of the states of the US. According to Lucy, she doesn’t want that to happen.

But the same shipping method also serves as the best option when it comes to her customers in the other country.

So this situation has made it very difficult for Lucy to configure the shipping methods according to her needs.

Now let us see how this confusion can be resolved by configuring the delivery options based on the customer’s address.

How to Configure Shipping Method using WooCommerce UPS Shipping Plugin?

As we discussed Lucy’s business case, when a customer places an order from within the US, being a local delivery the options of Next Day Air and 2nd Day Air delivery should be available to the customers. But not the Standard Delivery option.

That option is suitable only for customers across Mexico, to get their orders delivered using UPS Standard delivery. But first, to make sure that these shipping methods are available on the checkout page, you need to enable them. 

The below screenshot shows the UPS plugin settings where you can enable or disable the shipping methods based on your business case:

UPS Shipping methods

Once you have enabled the methods, these will be visible to customers as soon as they enter their shipping address. Based on these options, the order will include delivery charges.

Now to customize any shipping method, you can use a Code SnippetWith its store owners can change the shipping preferences of their customers based on their needs.

Lucy’s Scenario

Now let’s try to create a perfect business scenario for Lucy with the help of the above code.

Since Lucy wants that her customers in the US shall not be able to avail of UPS Standard shipping she will have to add the country code (US) in the snippet.

After editing the code and saving it, the option of UPS Standard Shipping will not be available for domestic customers. But the customers in Mexico will have access to that shipping method.

For reference, here are the screenshots along with the locations:

UPS rates on the cart

And for international customers,

Shipping Rates for Mexico

So this is how Lucy can continue using the WooCommerce UPS Shipping plugin to offer outstanding shipping services to her customers. Using this code and UPS Shipping plugin, any store owner can customize the shipping methods according to the business needs.

How will it affect the WooCommerce store owner?

The option to customize shipping methods, based on the destination, gives store owners some flexibility in terms of business cases. With these options, WooCommerce store owners like Lucy can make the shopping experience great for their customers.

By providing their customers with only those options with cheaper and faster delivery, they can ensure a huge customer base. It can give their business a boost with loyal customers.

Apart from that, they can choose the appropriate shipping method for customers based on the location. By limiting customers’ options and the hassle to choose between tons of shipping options, the store owners can provide limited but reasonable choices.

How will it affect customers?

Customers generally prefer choices. But when it comes to shipping methods and their charges, they all seem confusing. By providing them with a handful of reasonable options customers save a lot of time and the process of placing an order becomes easier.

Since domestic and international shipping is differentiated by default, having an option to just customize shipping methods make more sense within the category. In simple words, just for international shipping, customers can have the privilege of having different shipping options based on their countries. Store owners too won’t need to disable a service for customers residing in different countries.

Since we talked about some of the shipping methods used in Lucy’s case, here are all the shipping methods available within the WooCommerce UPS Shipping plugin. For convenience, all the methods are already categorized based on the customer’s address.

WooCommerce UPS Domestic Shipping Methods

UPS provides various domestic shipping options. Using the WooCommerce UPS Shipping Plugin you can provide your customers with the following shipping methods:

UPS domestic services

As you can see, the option for adding price adjustments (both amount and percentage) is also available within the plugin.

WooCommerce UPS International Shipping Methods

For those customers with delivery addresses in some other country, the following international shipping methods are available right from the store:

UPS international services

Apart from these services, WooCommerce UPS Shipping Plugin also provides some other shipping options. Here is a list of all these delivery options available within the plugin:

UPS services


We hope this article would have helped you configure the UPS Shipping methods based on country codes using the WooCommerce UPS Shipping Plugin from PluginHive.

If you have any queries regarding this method or the plugin, feel free to share your view in the comment section. You can also reach out to the PluginHive Customer Support team for more help with the WooCommerce UPS Shipping Plugin.

Happy selling!