Skip to content

Commit

Permalink
"Proceed to Checkout" override still active if left blank, causing pr…
Browse files Browse the repository at this point in the history
…oblems with other Languages/Multilingual Sites, PFW-206
  • Loading branch information
kcppdevelopers committed Jul 27, 2018
1 parent 7a55d72 commit 32742dc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 32742dc

Please sign in to comment.