Dev by SeanAUS120

Dev by SeanAUS120

Add text before pay buttons in WooCommerce; snippet

Add text before pay buttons in WooCommerce; snippet

Snippet for adding text before pay buttons on WooCommerce cart (useful for adding terms & conditions messaging).

add_action( 'woocommerce_review_order_after_submit', 'bbloomer_privacy_message_below_checkout_button' );
function bbloomer_privacy_message_below_checkout_button() {
   echo '<p>By placing this order, you agree to our <a href="/terms-of-service/" target=_blank">Terms of Service</a>.</p>';
}

The important part is:

woocommerce_review_order_after_submit

This declares where you want the text to appear.

In use at gorillaprinting.com & winenliquor.com

 
Share this