WooCommerce: Rename “Place Order” Button @ Checkout

 

PHP Snippet Alternative 1: Rename “Place Order” Button @ WooCommerce Checkout

/**
 * @snippet       Rename "Place Order" Button @ WooCommerce Checkout
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.8
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
  
add_filter( 'woocommerce_order_button_text', 'bbloomer_rename_place_order_button', 9999 );
  
function bbloomer_rename_place_order_button() {
   return 'Continue';
}

PHP Snippet Alternative 2: Rename “Place Order” Button @ WooCommerce Checkout

If the above snippet doesn’t work – try this one. Please note: you have to enter your button name in 3 places, see below in ALL CAPS.

/**
 * @snippet       Rename "Place Order" Button @ WooCommerce Checkout ALT
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.8
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
  
add_filter( 'woocommerce_order_button_html', 'bbloomer_rename_place_order_button_alt', 9999 );
  
function bbloomer_rename_place_order_button_alt() {
   return '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="CONTINUE" data-value="CONTINUE">CONTINUE</button>';
}

No comments:

Post a Comment

Free Shipping Threshold @ Cart Page