diff --git a/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-helper-angelleye.php b/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-helper-angelleye.php index be086122d..30a7d820e 100644 --- a/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-helper-angelleye.php +++ b/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-helper-angelleye.php @@ -1156,6 +1156,10 @@ public function angelleye_woocommerce_locate_template($template, $template_name, if( $template_name != 'cart/proceed-to-checkout-button.php' ) { return $template; } + $change_proceed_checkout_button_text = get_option('change_proceed_checkout_button_text'); + if( empty($change_proceed_checkout_button_text) ) { + return $template; + } global $woocommerce; $_template = $template; if ( ! $template_path ) {