add brand_name setting

This commit is contained in:
David Remer 2020-07-10 11:50:11 +03:00
parent fb605ab9dc
commit 34f0836c15
2 changed files with 15 additions and 0 deletions

View file

@ -270,6 +270,20 @@ return [
State::STATE_ONBOARDED,
],
],
'brand_name' => [
'title' => __('Brand Name', 'woocommerce-paypal-commerce-gateway'),
'type' => 'text',
'default' => get_bloginfo('name'),
'desc_tip' => true,
'description' => __(
'Control the name of your shop, customers will see in the PayPal process.',
'woocommerce-paypal-commerce-gateway'
),
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
],
'button_color' => [
'title' => __('Color', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',

View file

@ -80,6 +80,7 @@ class Settings implements ContainerInterface
'dcc_mini_cart_enabled' => true,
'dcc_checkout_enabled' => true,
'dcc_single_product_enabled' => true,
'brand_name' => get_bloginfo('name'),
];
foreach ($defaults as $key => $value) {
if (isset($this->settings[$key])) {