How do I exclude postcodes while setting up shipping table rates?

How do I exclude postcodes while setting up shipping table rates?

Out of the box, the Shipping Table Rates module does not allow excluding postcode ranges. 

However, this feature is presented in our Shipping Rules and Shipping Restrictions extensions. With the help of the Shipping Areas submodule that comes in a package, you can set up rates for a list of entities, including or excluding particular countries, states, regions, cities, postcodes, etc:


Let's say we'd like to set up a shipping rate for the US except for a zipcode range from 70100 to 70200. The following needs to be done:

1. Go to Sales → Shipping Table Rates and create a shipping method with at least one rate that covers all the US:



2. Go to Sales → Shipping Areas and create a shipping area with the following configuration:



This shipping area covers the US, zip code range from 70100 to 70200. 

3. Go to Sales → Shipping Restrictions and create a new rule with the configuration as depicted in the screenshot below:




As a result, this rule will hide the selected shipping method (US Delivery) if the customer specifies the USA as a shipping country and a zipcode from the mentioned range:





      • Related Articles

      • Shipping Table Rates API

        The methods listed below are not implemented by our module but are part of Magento itself. Our Shipping Table Rates module does not introduce its own API methods for the exclusive managing of rates created by the extension. However, all the Magento ...
      • How to import Shipping Table Rates?

        Due to the functionality that relies on Magento Import component, it is possible to seamlessly import huge data volumes via a CSV file in a few clicks. Our Shipping Table Rates module allows importing rates to the methods created in the instance. ...
      • How to fix the errors while importing CSV with the shipping table rates?

        If you are facing difficulties with importing a CSV file, it is necessary to check if the following conditions are met: 1. The country spelling in the CSV file is identical to the spelling of country names at Stores → Configuration → General → ...
      • How to configure a Shipping Restriction based on postcodes?

        There are several ways to configure a Shipping Restriction that will block a certain delivery method based on postcodes. Option #1 If you are using multiple single postcodes or ranges, one of the methods to configure a postcode-based Shipping ...
      • How many postcodes can be added to the Shipping Area?

        The maximum amount of postcodes within one Shipping Area can be achieved if the textarea input is used to list them rather than the table input: The textarea input field can fit up to 64,000 symbols. With an average postcode length of around 8 ...