Free shipping after a certain amount in cart
-
Hello,
I use a few rules in my shop – e.g if a product is in a certain category free shipping is available for the customer – I do this in my functions.php.I also want to offer him free shipping when his cart is above $50. But when I go to WooCommerce->Settings->Shipping->Free shipping and enable the free shipping if $50 is in the cart and I refresh my cart on the frontend, I have still a fee too pay.
Does anybody know why this isn’t working? I tried to add this to my code, but even this does not work:
function custom_free_per_class( $return, $package ) { global $woocommerce; if ( $woocommerce->cart->total > 50 ) { return true; } add_filter( 'woocommerce_shipping_free_shipping_is_available', 'custom_free_per_class', 10, 2 );
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Free shipping after a certain amount in cart’ is closed to new replies.