From 1dab788118f4f3b530d90098337e25f85f4d51ce Mon Sep 17 00:00:00 2001 From: Chouby Date: Mon, 19 Jun 2017 14:37:17 +0200 Subject: [PATCH] Use WooCommerce method get_description() This allows to pass the WooCommerce filter 'woocommerce_gateway_description' as for other payment gateways. --- lib/integration/woocommerce.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/integration/woocommerce.inc.php b/lib/integration/woocommerce.inc.php index cbec13a..de0d0c9 100644 --- a/lib/integration/woocommerce.inc.php +++ b/lib/integration/woocommerce.inc.php @@ -1147,7 +1147,7 @@ public function payment_fields(){ echo '' . $this->title . ''; - echo '

'.$this->settings['description'].'

'; + echo '

'.$this->get_description().'

'; require_once(PAYMILL_DIR.'lib/tpl/checkout_form.php'); }else{ @@ -1159,4 +1159,4 @@ public function payment_fields(){ } } add_action('plugins_loaded', 'init_paymill_gateway_class'); -?> \ No newline at end of file +?>