On this page
What this issue is
Some goods are restricted in some places. Examples are alcohol, e-cigarettes, certain supplements, cosmetics, knives, batteries, and anything covered by sanctions or export controls. A store has this issue when it lets a shopper buy such a product and ship it to a country (or state) where it is not allowed.
Why it costs you leads or sales
Example: a $80 order that is refused at the border. Numbers are illustrative.
- Product pageRestricted item shown to everyone
- CartItem added
- Checkout countryBlocked country accepted
- Payment takenOrder should not exist
- ShipmentRefused or returned
The break is the missing country check between the cart and payment.
How to check if your site has it
List restricted products and places
Write down each product or category and the countries or states where it must not ship.
Add the product to the cart
Use a private browser window so no saved address or login interferes.
Enter a blocked address
Use a real-format address in the blocked country or state. Try the shipping address and a different billing address.
Watch for a block
You should see a clear message or no shipping method at all. If you can reach the payment step, the rule is leaking.
Try the side doors
Test express buttons (Apple Pay, Google Pay, PayPal), draft or manual orders, wholesale pages and marketplace feeds.
Review past orders
Filter your orders by destination country and look for restricted items shipped to blocked places.
How to fix it
Limit shipping zones
In WooCommerce go to Settings > Shipping and keep only the zones you may serve. Remove the "Locations not covered by your other zones" shipping methods.
Restrict by product
Use a shipping class for restricted items and give it a rate only inside allowed zones, or use a country-restriction extension. Also restrict selling countries in Settings > General > Selling location(s).
Add a checkout check
If you need stricter rules, add a validation snippet (below) or a plugin that blocks the order at checkout.
Set up markets and shipping profiles
In Settings > Markets, remove blocked countries. In Settings > Shipping and delivery, create a custom profile for restricted products and add only allowed zones.
Assign products to the profile
Open the profile and add the restricted products. They then have no shipping rate for other countries, so checkout cannot complete.
Check express checkouts
Test accelerated buttons, since they use the same shipping profiles but can show different messages.
Not a place for enforcement
Tag Manager runs in the browser and can be bypassed. Use it at most to show a notice; enforce the rule in your store settings or server.
Limit Ecommerce shipping zones
In Ecommerce settings > Shipping, set the countries you ship to and remove the rest.
Handle product-level rules
Webflow has limited per-product country rules. Use shipping zones and conditional shipping rules, and consider a custom backend check for strict cases.
Set shipping regions
In Settings > Shipping & fulfillment, create delivery regions with only allowed countries and remove any worldwide region.
Check per-product options
If one product needs different regions, assign it to its own shipping rule where your plan allows it.
Edit shipping options
In Commerce > Shipping, edit each option and limit the regions it applies to. Remove any option that covers all countries.
Use product-specific rules
Squarespace has limited per-product region rules, so split restricted items into a separate store flow or restrict them with shipping options where possible.
Restrict shipping countries
In your store settings, set shipping zones to allowed countries only. Check the options available in your account.
Review funnel order forms
If you sell through funnel order forms, check that the country field only lists allowed countries.
Validate on the server
Reject the order in your backend when the product and destination match a blocked pair. Never rely on front-end checks alone.
Return a clear message
Tell the shopper which item cannot ship to their country and let them remove it.
add_action( 'woocommerce_after_checkout_validation', function ( $data, $errors ) {
$blocked_countries = array( 'XX', 'YY' ); // replace with ISO country codes
$restricted_product_ids = array( 123, 456 ); // replace with your product IDs
$country = isset( $data['shipping_country'] ) ? $data['shipping_country'] : $data['billing_country'];
if ( ! in_array( $country, $blocked_countries, true ) ) {
return;
}
foreach ( WC()->cart->get_cart() as $item ) {
if ( in_array( $item['product_id'], $restricted_product_ids, true ) ) {
$errors->add( 'restricted', 'Sorry, one or more items in your cart cannot be shipped to your country.' );
return;
}
}
}, 10, 2 );How to confirm it's fixed
- A blocked address cannot reach the payment step for any restricted product
- The message names the item and the reason in plain words
- Express checkout buttons also refuse blocked destinations
- Draft, manual and wholesale orders follow the same rules
- Mixed carts (restricted plus normal items) are handled as you intend
- Allowed countries still check out normally
How to prevent it happening again
- Keep one written list of restricted products and blocked regions
- Tag restricted products so they are easy to find and assign to the right shipping profile
- Re-test blocked addresses whenever you add a market, shipping zone, product or checkout app
- Review orders by destination country each month
- Re-read carrier and payment provider rules when they update
How FunnelGuard handles this
Questions people ask
How do I stop selling certain products to certain countries?
Limit shipping so restricted products have no rate for blocked countries. In Shopify use shipping profiles and Markets, and in WooCommerce use shipping zones and classes. Add a server-side check for strict cases.
Why can a customer in a blocked country still check out?
Usually a shipping zone covers all countries, a product is not assigned to a restricted profile, or an express checkout skips your rules. Test with a blocked address in a private window to find which.
Is blocking by IP address enough to restrict products?
No. IP location is easy to get around and can be wrong for travellers. Use the delivery address entered at checkout as the main check, and enforce it before payment.
What happens if I ship a restricted product to a blocked region?
The parcel may be refused or seized, you may lose the goods and shipping costs, and your payment or marketplace account may be reviewed or closed. Some cases carry legal penalties.
How do I find past orders that went to blocked regions?
Export your orders and filter by shipping country, then compare with your restricted product list. Fix the rules first, then decide how to handle any open orders with your carrier or adviser.
Can FunnelGuard tell me if I sell restricted products to blocked regions?
No. FunnelGuard monitors funnel steps, tracking and lead delivery, not product legality by country. A trade-compliance or per-product country-rules tool is a better fit.
Do I need to block billing addresses as well as shipping addresses?
Often yes. Some restrictions and sanctions rules apply to the buyer as well as the destination. Check your rules, and validate both addresses where it applies.
Related issues
- OPS-363Age verification missing for alcohol/vape/adultFix guide
- OPS-355Shipping info and costs missing before checkoutFix guide
- OPS-356Terms and conditions missing or not linked at checkoutFix guide
- OPS-360Business identity/address missing (EU e-commerce directive)Fix guide
- OPS-362Online dispute resolution / consumer rights info missingFix guide
- OPS-354Refund/returns policy missingFix guide