mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
add brand_name setting
This commit is contained in:
parent
fb605ab9dc
commit
34f0836c15
2 changed files with 15 additions and 0 deletions
|
@ -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',
|
||||
|
|
|
@ -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])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue