New answers tagged

0

I found this solution: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface'); $store_code = $storeManager->getStore()->getCode();


1

You can use a default Magento store repository \Magento\Store\Api\StoreRepositoryInterface. Add it as dependency and call the getList method. /** @var \Magento\Store\Api\StoreRepositoryInterface $repository */ $stores = $repository->getList(); foreach ($stores as $store) { echo 'Store: ' . $store->getId(); echo ' --- '; } will output all ids:


0

Go to Admin > Catalog > Categories > Switch the french store view (in the top left) > Select your category > then check if the category is enabled.


0

Have found a solution, how could be send couple values https://screencast.com/t/RWjZYejJV2


Top 50 recent answers are included