mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +08:00
Set the title and the description from the client settings
This way the user can display the title it wants on the frontend
This commit is contained in:
parent
9152c4e618
commit
600dd76dd3
1 changed files with 5 additions and 1 deletions
|
@ -39,12 +39,16 @@ class WcGateway extends \WC_Payment_Gateway
|
||||||
$this->orderFactory = $orderFactory;
|
$this->orderFactory = $orderFactory;
|
||||||
$this->settingsFields = $settingsFields;
|
$this->settingsFields = $settingsFields;
|
||||||
$this->id = self::ID;
|
$this->id = self::ID;
|
||||||
$this->title = __('PayPal Payments', 'woocommerce-paypal-gateway');
|
|
||||||
$this->method_title = __('PayPal Payments', 'woocommerce-paypal-gateway');
|
$this->method_title = __('PayPal Payments', 'woocommerce-paypal-gateway');
|
||||||
$this->method_description = __(
|
$this->method_description = __(
|
||||||
'Provide your customers with the PayPal payment system',
|
'Provide your customers with the PayPal payment system',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-gateway'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$this->title = $this->get_option('title');
|
||||||
|
$this->description = $this->get_option('description');
|
||||||
|
|
||||||
$this->init_form_fields();
|
$this->init_form_fields();
|
||||||
$this->init_settings();
|
$this->init_settings();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue