Restricting shipping by state
If you ship within the United States, you may want to limit the states you ship your subscription products to. This guide outlines how to restrict your shipping based on certain states and how to hide these states from your checkout.
- BigCommerce Checkout Integration
- Recharge Checkout on Shopify
- Recharge Checkout on BigCommerce
If you are using Shopify Checkout Integration with Basic Shipping Rates, refer to Recharge's Shopify Shipping Profiles guide.
Step 1 - Edit your shipping zones
Recharge Shipping Zones and Rates
BigCommerce merchants and Shopify merchants using the Recharge Checkout can set up their shipping rates using Recharge Shipping Zones and Rates. Recharge Rates allow you to configure rates at a state level.
- Click Settings in your merchant portal and select Shipping.
- Under Shipping setup, select Use Recharge zones, rates and integrations (Advanced).
- Click Manage zones and select Add shipping zone.
- Search for the United States.
- Click the drop-down arrow to expand the list of states. Use the checkboxes to select which states you wish to ship to.
- Click Save zone.
Shopify Shipping Rates
Shopify merchants using the Recharge Checkout on Shopify with basic shipping settings (Get all rates from Shopify), can restrict the shipping zone by state in their Shopify shipping settings.
- Click Settings in your merchant portal and select Shipping.
- Under Shipping setup, ensure Get all rates from Shopify is selected.
- In the Shopify Admin, click Settings.
- Select Shipping and delivery and click Manage rates under Shipping.
- If you do not already have a United States shipping zone, click Create shipping zone and use the checkboxes to select which states you wish to ship to.
- If you already have a United States shipping zone, click the three dots next to the zone and select Edit zone.
- Click the drop-down arrow to expand the list of states.
- Use the checkboxes to select which states you wish to ship to. Click Done when finished.
Step 2 - Adjust Recharge Shipping settings
- In your merchant portal, click Settings and select Shipping.
- Scroll down to Advanced settings and select the setting Display an error if no matching shipping rate is found. This ensures that when customers attempt to purchase in an excluded state, they will be blocked.
Hide non-supported states from the checkout
You can hide any extra states with CSS on the checkout.
- On your store's checkout page, right-click on the state text field, and click Inspect. From the inspection window, you can locate the state and identify the following code for the corresponding state you want to hide from the list.
- Click Storefront in the merchant portal and select Checkout.
- In the CSS Editor textbox, enter the code and include the state you would like to hide.
select#checkout_shipping_address_province option[value="Alaska"] {
display: none;
}