Skip to content

Commit

Permalink
Merge pull request #1183 from angelleye/PFW-206
Browse files Browse the repository at this point in the history
"Proceed to Checkout" override still active if left blank, causing pr…
  • Loading branch information
Andrew Angell committed Aug 9, 2018
2 parents fe8410c + 32742dc commit 2ba71c5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,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 2ba71c5

Please sign in to comment.