From 32742dc0966e3df3cd0780219dcd3694294fbcc4 Mon Sep 17 00:00:00 2001 From: kcppdevelopers Date: Fri, 27 Jul 2018 13:53:28 +0530 Subject: [PATCH] "Proceed to Checkout" override still active if left blank, causing problems with other Languages/Multilingual Sites, PFW-206 --- .../class-wc-gateway-paypal-express-helper-angelleye.php | 4 ++++ 1 file changed, 4 insertions(+) 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 ) {