mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
7 lines
316 B
Text
7 lines
316 B
Text
add_action( 'woocommerce_before_cart_table', 'free_shipping_notice' );
|
|
add_action( 'woocommerce_checkout_before_customer_details', 'free_shipping_notice' );
|
|
function free_shipping_notice() {
|
|
if ( 25 > WC()->cart->get_total() ) {
|
|
echo '<div style="color: #e08e79;">All orders over $25 ship free</div>';
|
|
}
|
|
}
|