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' );
}
}
" data-src="
More popular tutorials
Discover more articles and tutorials to help you build better.
How to install Flatsome Theme in WordPress
Add Dark Mode Option for Flatsome Theme Tutorial
Export & Import Theme Options in Flatsome Theme
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.