How do I apply shipping rates based on the cart total? For example:

  • If cart total is $0.0 to $9.99 - shipping rate is $5.75
  • If cart total is $14.99 to $35.00 - shipping rate is $8.25
  • If cart total is $35.01 to $75.00 - shipping rate is $15.50
  • If cart total is $75.01 and over - shipping rate is $25.00
up vote 0 down vote accepted

Try this plugin Advanced Flat Rate Shipping Method WooCommerce.

Hope this helps.

This example seems very close to what your looking for.

  1. Create your shipping zone
  2. Setup your shipping methods
  3. Tell WC when to use each method (or when not to use the others)

This is the example from the site. You will need to rewrite the if statement to fit your needs. This would go in your theme's functions.php file.

add_filter( 'woocommerce_package_rates', 'bbloomer_woocommerce_tiered_shipping', 10, 2 );

function bbloomer_woocommerce_tiered_shipping( $rates, $package ) {

    $threshold = 100;

    if ( WC()->cart->subtotal < $threshold ) {
        unset( $rates['flat_rate:1'] );
    } else {
        unset( $rates['flat_rate:2'] );
    }

    return $rates;

}

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.