Prevent Shipping to a Zone for Certain Items
Set up ShipperHQ to block product shipping to restricted zones
Table of Contents
- Overview
- Requirements
- Define Shipping Zone
- Define Shipping Group
- Setup
- SETUP A: Use Shipping Group to Prevent Shipping to Zone
- SETUP B: Use a Shipping Rule to Prevent Shipping to Zone
- Assign Products to their Shipping Groups
Overview
Some merchants sell products online that face restrictions based on local or state regulations. For instance, shipping items like alcohol or ammunition often involves preventing shipping to specific locations where it's prohibited by regulations. ShipperHQ provides two easy ways to restrict products, which are outlined below. 😊
Requirements
You need to set up your carriers and origin(s) in ShipperHQ first. Let's assume you have done this with UPS as a carrier and one origin for dispatching.
Define Shipping Zone
Before creating a shipping rule or group to be restricted, create and define the zone where the product(s) can be shipped. For example, we'll use a zone titled "Unrestricted Alcohol Zone," including only the states, cities, or zip codes where shipment is allowed. See our setup guide for Shipping Zone Configuration here for more details.
Define Shipping Group
Set up a shipping group to categorize goods together for rule application. In this example, we'll create a group called ALCOHOL. Follow the steps for Shipping Group Configuration here.
Setup
SETUP A: Use Shipping Group to Prevent Shipping to Zone
With shipping groups, you can restrict the zones they display rates to, which is often the best approach for specific product restrictions. Here’s how:
- Edit the Shipping Group you defined, such as ALCOHOL.
- In the Optional panel, under Restrict to Specific Destinations, choose the Zone you created for allowed alcohol shipments.
- Only set the "Restrict to Shipping Methods" if you want the group to show specific methods, like Ground only.
- No need to adjust Advanced Settings.
- Save the group.
💡 Please Note: When a shipping group has a zone defined under "Restrict to Specific Destinations," no other zones will be eligible, regardless of other items in the cart. If this scenario is common for your quotes, see our article on how to rate groups as separate shipments here.
SETUP B: Use a Shipping Rule to Prevent Shipping to Zone
With shipping rules, you can hide rates when the group is in the cart, allowing more conditional flexibility:
- Navigate to Shipping Rules and click +New.
- Choose Hide Methods.
- Under Shipping Methods, select all methods to prevent rates from being displayed except for the designated zone.
- Next, select Shipping Zones as a condition.
- If your zone includes areas where ALCOHOL products cannot be shipped, select Shipping Zones Include.
- If the zone includes only areas where ALCOHOL products can be shipped, select Shipping Zones Do Not Include. Configure appropriately based on your Shipping Zone setup.
- Add a recognizable title for the new rule for easy identification.
- Click “Finish” to save and apply the rule immediately. Use the Test your Rates feature to confirm it's working.
💡 NOTE: For Magento 1 and 2, there is a checkbox to “Show Error Message when this Rule Applies.” If checked, you can enter a custom message like “Alcohol cannot be shipped to your destination.”
Assign Products to their Shipping Groups
Ensure you assign products to their respective groups before testing at checkout.