WooCommerce show only lowest shipping rate

woocommerce shippingIf you create rules for WooCommerce shipping costs, you’ll often end up with situations where customers can choose either paying $5.00 or $10.00 for shipping.

You can still hope some clients will choose to pay the higher rate, but in most situation the choice is useless.

There’s a code snippet available at WooCommerce documentation to hide other shipping options when free shipping is available.

Filter woocommerce_package_rates

I want to hide other options if a cheaper rate is available.

Add the following code to your themes functions.php:



Leave a Reply

Your email address will not be published. Required fields are marked *