Show a free shipping method message on checkout to encourage people to buy more product in your shop. Using the free snippet of Business Bloomer it’s easy and fast without using a plugin.
Snippet
/** * @snippet $$$ remaining to Free Shipping @ WooCommerce Cart * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogli * @compatible WooCommerce 3.9 * @donate $9 https://businessbloomer.com/bloomer-armada/ */ add_action( 'woocommerce_before_cart', 'bbloomer_free_shipping_cart_notice' ); function bbloomer_free_shipping_cart_notice() { $min_amount = 50; //change this to your free shipping threshold $current = WC()->cart->subtotal; if ( $current < $min_amount ) { $added_text = 'Get free shipping if you order ' . wc_price( $min_amount - $current ) . ' more!'; $return_to = wc_get_page_permalink( 'shop' ); $notice = sprintf( '%s %s', esc_url( $return_to ), 'Continue Shopping', $added_text ); wc_print_notice( $notice, 'notice' ); } }
More popular tutorials
Discover more articles and tutorials to help you build better.
Text Ticker (Fade) for Top Bar in Flatsome Theme
Rebuilding Nike Product Page in Flatsome & WooCommerce
Optimising your Product Category Page for WooCommerce
Black Friday ⚡ Limited offer 50%-Off
Look better. Sell Better. With our designs.
Beautifully designed and easy customizable Flatsome demos for your WooCommerce shop. Invest in your online future.