How to add location-specific shipping methods in WooCommerce
Location-specific shipping lets you apply different shipping costs depending on where your customers are located.
With the Flat Rate Shipping Plugin, you can directly set conditional rules based on country, state, or postcode without creating separate shipping zones.
Why Use Location-Specific Shipping?
- Accurate Costs: Charge more for remote areas and less for nearby regions.
- Flexibility: Offer free or discounted shipping in selected cities, states, or postcodes.
- Better Planning: Balance logistics costs while keeping shipping transparent.
- Improved Customer Trust: Customers see rates tailored to their location, avoiding surprises.
Configuration Steps
- Open Flat Rate Shipping Plugin
- Log in to your WordPress dashboard.
- Go to Dashboard → Dotstore → Flat Rate Shipping
- Add a New Shipping Method
- Click Add New button to add a new shipping method
Configure the shipping name and price-related details
- Add a Conditional Rule
- In the Shipping Rules tab, click Add New Rule.
- For Country: Select the target country (e.g., United States).
- For State: Select a specific state (e.g., California).
For Postcode: Enter a list, range, or wildcard (e.g.,
90001, 90002
, or900*
).
- Save the Rule
- Click Save Changes.
The rule will now apply whenever a customer checks out from that location.
Ready to See All Features in Actions?
Access our complete advanced features instance, allowing you to configure every feature with real checkout scenarios.
Two Real Examples
Example 1: Free Shipping for US Customers
- Product: Wireless Mouse
Price: $40
Rule: If Country = United States → Shipping = Free
Checkout Result:
- Subtotal: $40
- Shipping: Free
- Total = $40
Example 2: Extra Fee for California Postcodes
- Product: Office Chair
Price: $150
Rule: If State = California and Postcode = 90001...90050 → Shipping = $15
Checkout Result:
- Subtotal: $150
- Shipping (California Zone Fee): $15
- Total = $165