Display custom message below or above place order button in wordpress woo commerce

Sometime we have to display some custom message above or below place order button on checkout page, on a woocommerce site. Codes given below are used for that, hope you like it, and do share your own contribution if you have any.

Thanks for reading this blog.

For displaying message above placer order button

add_action( ‘woocommerce_review_order_before_submit’, ‘message_above_checkout_button’ ); function message_above_checkout_button() { echo ‘

RazorPay – For Indian Customers Only
Paypal – For Foreign Customers

‘; }

For displaying message above placer order button

add_action( 'woocommerce_review_order_after_submit', 'message_below_checkout_button' );
 
function message_below_checkout_button() {
   echo '<p>Choose Paypal if you live out of India to avoide Payment Issue</p>';
}

Leave a Comment

Your email address will not be published. Required fields are marked *

0