33 'setLocale' =>
'general/locale/code',
34 'setBaseCurrencyCode' =>
'currency/options/base',
35 'setDefaultDisplayCurrencyCode' =>
'currency/options/default',
36 'setTimezone' =>
'general/locale/timezone',
62 $storeCollection = $this->storeCollectionFactory->create();
64 $storeCollection->addFieldToFilter(
'code', [
'in' =>
$storeCodes]);
67 foreach ($storeCollection->load() as
$item) {
68 $storeConfigs[] = $this->getStoreConfig(
$item);
77 protected function getStoreConfig(
$store)
83 ->setCode(
$store->getCode())
84 ->setWebsiteId(
$store->getWebsiteId());
86 foreach ($this->configPaths as $methodName => $configPath) {
87 $configValue = $this->scopeConfig->getValue(
__construct(\Magento\Store\Model\ResourceModel\Store\CollectionFactory $storeCollectionFactory, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Store\Model\Data\StoreConfigFactory $storeConfigFactory)
getStoreConfigs(array $storeCodes=null)
if($product->getId()) catch(\Magento\Framework\Exception\NoSuchEntityException $e) $storeCodes
const XML_PATH_WEIGHT_UNIT