How to prevent a carrier from meeting a certain ZIP code range?
The zip code ranges served by a carrier are determined by the shipping spreadsheet, which is usually provided to the store by the carrier itself.
But sometimes you may need to block some zip code or zip codes rage. That is, you may want to prevent that a carrier, for a particular zip code or zip codes range, from making deliveries, even if by default it can do so.
To do that, you must exclude the zip codes you don't want to consider from the shipping spreadsheet.
Example
Let's say you want to exclude only the zip code 45920-000 from the spreadsheet of a carrier.
To do so, you would follow these steps:
- In the VTEX Admin, go to Shipping > Shipping Strategy > Shipping policies, or type Shipping Strategy in the search bar at the top of the page.
- Download the shipping spreadsheet on Shipping Rates.
- Open the spreadsheet and look for the lines corresponding to the zip code range where the code to be disregarded is located, ie:
ZipCodeStart
= 37900-001 andZipCodeEnd
= 97904-999. - Each of these lines must be turned into two, so that the zip code 45920-000 is ignored. So you would have:
ZipCodeStart
= 37900-001 andZipCodeEnd
= 45919-999 /ZipCodeStart
= 45920-001 andZipCodeEnd
= 97904-999.
With this, the spreadsheet would "jump" the zip code 45920-000. And consequently it would no longer be considered as an address served by that carrier.
The postal code examples in this article refer to Brazil, each country has its own postal code format.