From 732501b120ab2f27d810d1450ae16dc9882d0c11 Mon Sep 17 00:00:00 2001 From: David Verholen Date: Fri, 24 Mar 2017 13:01:53 +0100 Subject: [PATCH] [FIX] load imprint config values with scope store load imprint values with store scope to allow different values for different store views --- Block/Imprint/Content.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Block/Imprint/Content.php b/Block/Imprint/Content.php index 19d8d7e..3473235 100644 --- a/Block/Imprint/Content.php +++ b/Block/Imprint/Content.php @@ -8,6 +8,7 @@ use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Directory\Api\CountryInformationAcquirerInterface; use Magento\Framework\Exception\NoSuchEntityException; +use Magento\Store\Model\ScopeInterface; /** * Class Content @@ -137,6 +138,6 @@ public function getEmailJs($parts) */ public function getImprintValue($field) { - return $this->scopeConfig->getValue(self::XML_PATH_IMPRINT . $field); + return $this->scopeConfig->getValue(self::XML_PATH_IMPRINT . $field, ScopeInterface::SCOPE_STORES); } }