Legacy Shipping Options

In WooCommerce 2.6 we introduced Shipping Zones that replace shipping options previously in core.

If you’re using any of the previous (called ‘legacy’) shipping methods, they will continue to function. But we recommend moving to Shipping Zones as soon as possible because legacy methods will be removed in future releases.

Shipping Zones allows options to be used multiple times, so some former methods (such as international flat rate) are no longer required and can be replaced with Flat Rate Shipping.

Flat Rate Shipping ↑ Back to top

Flat Rate Shipping is a shipping method included free in WooCommerce that allows you define a standard rate per item, per shipping class or per order.

Settings are found at: WooCommerce > Settings> Shipping > Flat Rates.

Flat Rate Settings

Flat Rate Shipping works with Product Shipping Classes, adding more power and flexibility.

Configuration ↑ Back to top

In the Settings screen, there are a few options to choose from:

  • Enable/Disable – Tick the box to enable Flat Rates.
  • Method Title – Name the method. This is what the customer sees when selecting a shipping method.
  • Availability – Define ‘All allowed countries’ or ‘specific countries’ to limit where Flat Rates are offered.
  • Tax Status – Define whether or not tax is applied to the shipping amount.
  • Cost – Define a cost applied to the entire cart. You can add additional costs per item to this field. This is covered below.

Advanced Costs ↑ Back to top

The Cost field allows you to charge a flat rate per item, a percentage based cost, or a minimum fee.

Available placeholders:

  • [qty] – Number of products in the cart
  • [fee] – An additional fee. This fee has two optional arguments.
    • percent – A percentage based on total order cost.
    • min_fee – A minimum amount. Useful when using percentages.

Examples

  • 10 + ( 2 * [qty] ) – A base shipping cost of $10 plus $2 for each item in the cart.
  • 20 + [fee percent="10" min_fee="4"] – A base shipping cost of $20 plus 10% of the order total, which is at least $4.

Shipping Classes ↑ Back to top

If you have shipping classes, the interface adds a few more fields:

Flat Rate Shipping Settings Shipping Classes

  • There is one cost field for each shipping class.
  • No Shipping Class Cost – Useful if you use the Per Class option below. Otherwise, use the Cost field.
  • Calculation Type – Two options:
    • Per Order – Picks the most expensive option based on shipping costs in the cart.
    • Per Class – Charges shipping for each shipping class.

International Flat Rate Shipping ↑ Back to top

International Flat Rate is based on Flat Rate Shipping, which allows you define a standard rate per order, per item or per shipping class for international delivery.

The settings page is found at: WooCommerce > Settings> Shipping > International Flat Rate.

International Shipping Settings

International Flat Rates works with Product Shipping Classes, adding more power and flexibility.

Configuration ↑ Back to top

  • Enable/Disable – Tick the box to enable International Flat Rates.
  • Method Title – Name the method. This is what the customer sees when selecting a shipping method.
  • Availability – Define ‘All allowed countries’ or ‘specific countries’ to limit where International Flat Rates are offered.
  • Tax Status – Define whether or not tax is applied to the shipping amount.
  • Cost – Define a cost applied to the entire cart. You can add additional costs per item to this field. This is covered below.

Advanced Costs ↑ Back to top

What if you want to charge an international flat rate per item? Or a percentage-based cost? Or enforce a minimum fee? This is why we allow math in the Cost field.

Available placeholders:

  • [qty] – Number of products in the cart
  • [fee] – An additional fee. This fee has two optional arguments.
    • percent – A percentage based on total order cost.
    • min_fee – A minimum amount. Useful when using percentages.

Examples

  • 10 + ( 2 * [qty] ) – A base shipping cost of $10 plus $2 for each item in the cart.
  • 20 + [fee percent="10" min_fee="4"] – A base shipping cost of $20 plus 10% of the order total, which is at least $4.

Shipping Classes ↑ Back to top

If you have shipping classes, there is another section that adds a few more fields you can use:

  • There will be a cost field for each shipping class you have.
  • No Shipping Class Cost – Useful if you use the Per Class option below. Otherwise, use the Cost field.
  • Calculation Type – Two options:
    • Per Order – Picks the most expensive option based on shipping costs in the cart.
    • Per Class – Charges shipping for each shipping class.

Free Shipping ↑ Back to top

If you enable free shipping, customers will have access to free shipping on their orders. This is a great shipping method to use to encourage customers to spend more. For example, give them free shipping on orders over $100.

Setup and Configuration ↑ Back to top

Be sure you give it a Method Title and set a Method Availability.

In Method Availability you can choose All allowed countries, letting any customer from any country be eligible for free shipping, or Specific Countries. If you choose Specific Countries a new field titled Specific Countries will appear you can use to limit free shipping to.

You can then specify a conditions they must meet to be granted free shipping in the Free Shipping Requires… Those are:

  • N/A – Not available, Free Shipping is an option for all customers
  • A valid free shipping coupon – A coupon created that enables free shipping
  • A minimum order amount (defined below) – Set the amount in the Minimum Order Amount field.
  • A minimum order amount OR a coupon
  • A minimum order amount AND a coupon

Create Free Shipping Coupons ↑ Back to top

Step 1: Create a coupon
First create a coupon and then tick the Free Shipping box. More info at: (Coupon Management).

Step 2: Enable free shipping for coupons
In ‘free shipping’ settings, tick the option to require a free shipping coupon. Thats it! Customers can now use the coupon to get free shipping during checkout.

Coupon vs. Min Amount Handling ↑ Back to top

If you have coupons for free shipping and min-amount, coupons take priority. If the user has a coupon, the min-amount is ignored. If, however, the user doesn’t have a coupon, min-amount will be checked.

(Advanced) Enabling or disabling Free shipping via hooks ↑ Back to top

The free shipping method has an is_available function that can be hooked into:

return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', $is_available );

This means you can use add_filter() on woocommerce_shipping_free_shipping_is_available and return true or false.

Local Delivery ↑ Back to top

Local delivery is a shipping method for delivering orders locally. The fee can be specified based on a percentage of the cart total or a flat fee, or it can be free.

WooCommerce Local Delivery

You can enable and configure Local Delivery at: WooCommerce > Settings Shipping > Local Delivery

Taxes for Local Delivery are based on the store location settings. If your tax rules are based on postcodes/zipcodes, then you need to use a function to ensure the store postcode/zipcode is included.

Local Pickup ↑ Back to top

Local Pickup is a method that allows the customer to pick up the order themselves.

You can enable and configure Local Pickup from WP Dashboard > WooCommerce > Settings > Shipping > Local Pickup.

Local Pickup

Note: The Local Pickup shipping method calculates taxes based on your base store location and not the customer’s address.

To disable tax calculation for Local Pickup, add the following code at the end of your functions.php file:

add_filter( 'woocommerce_apply_base_tax_for_local_pickup', '__return_false' );

To charge local taxes based on postcode and city for Local Pickup, you need to define the shop’s base city and postcode using this snippet:

↑ Back to top

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top