Skip to content
Advertisement

WooCommerce: “You Only Need x pieces to Get Free Shipping!” @ Cart

Each product weighs is 1kg.

From the second product onwards (so 2kg) shipping is free.

how can I get this notice to appear?: you Only Need x pieces to Get Free Shipping!

JavaScript

Thank you

Advertisement

Answer

Following from https://www.businessbloomer.com/woocommerce-add-need-spend-x-get-free-shipping-cart-page/ where I believe you got the snippet from, and based on your statement (basically if Cart is not empty and there is 1 item in the Cart, you only need 1 item to get to 2kg/free shipping), I’d use the following:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement