diff --git a/src/View/Result/Page.php b/src/View/Result/Page.php index 8c031e8..194aee8 100644 --- a/src/View/Result/Page.php +++ b/src/View/Result/Page.php @@ -170,4 +170,10 @@ public function getWebsiteCode() { return $this->storeManager->getWebsite()->getCode(); } + + public function getAccountSharingOption() + { + $optionValue = $this->scopeConfig->getValue('customer/account_share/scope', ScopeInterface::SCOPE_WEBSITE); + return (int)$optionValue == 0 ? 'global' : 'per_website'; + } }