Skip to content

Commit ca95769

Browse files
magento/magento2-login-as-customer#150: Opt-in/out - tooltip text scope fix.
1 parent 347d9ad commit ca95769

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

app/code/Magento/LoginAsCustomerAssistance/Model/Config.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
use Magento\Framework\App\Config\ScopeConfigInterface;
1111
use Magento\LoginAsCustomerAssistance\Api\ConfigInterface;
12+
use Magento\Store\Model\ScopeInterface;
1213

1314
/**
1415
* @inheritdoc
@@ -42,14 +43,20 @@ public function __construct(
4243
*/
4344
public function getShoppingAssistanceCheckboxTitle(): string
4445
{
45-
return (string)$this->scopeConfig->getValue(self::XML_PATH_SHOPPING_ASSISTANCE_CHECKBOX_TITLE);
46+
return (string)$this->scopeConfig->getValue(
47+
self::XML_PATH_SHOPPING_ASSISTANCE_CHECKBOX_TITLE,
48+
ScopeInterface::SCOPE_WEBSITE
49+
);
4650
}
4751

4852
/**
4953
* @inheritdoc
5054
*/
5155
public function getShoppingAssistanceCheckboxTooltip(): string
5256
{
53-
return (string)$this->scopeConfig->getValue(self::XML_PATH_SHOPPING_ASSISTANCE_CHECKBOX_TOOLTIP);
57+
return (string)$this->scopeConfig->getValue(
58+
self::XML_PATH_SHOPPING_ASSISTANCE_CHECKBOX_TOOLTIP,
59+
ScopeInterface::SCOPE_WEBSITE
60+
);
5461
}
5562
}

app/code/Magento/LoginAsCustomerAssistance/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"magento/framework": "*",
77
"magento/module-backend": "*",
88
"magento/module-customer": "*",
9+
"magento/module-store": "*",
910
"magento/module-login-as-customer": "*",
1011
"magento/module-login-as-customer-api": "*"
1112
},

0 commit comments

Comments
 (0)