Skip to content

Commit

Permalink
Use WooCommerce method get_description()
Browse files Browse the repository at this point in the history
This allows to pass the WooCommerce filter 'woocommerce_gateway_description' as for other payment gateways.
  • Loading branch information
Chouby authored Jun 19, 2017
1 parent a153a04 commit 1dab788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/integration/woocommerce.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ public function payment_fields(){

echo '<a href="https://www.paymill.com/" target="_blank"><img src="' . WC_HTTPS::force_https_url( $this->logo_small ) . '" alt="' . $this->title . '" /></a>';

echo '<p class="paymill_payment_description">'.$this->settings['description'].'</p>';
echo '<p class="paymill_payment_description">'.$this->get_description().'</p>';

require_once(PAYMILL_DIR.'lib/tpl/checkout_form.php');
}else{
Expand All @@ -1159,4 +1159,4 @@ public function payment_fields(){
}
}
add_action('plugins_loaded', 'init_paymill_gateway_class');
?>
?>

0 comments on commit 1dab788

Please sign in to comment.