0

I have created a multistore website and after that create root category for all different store, When I try to get store vice category I am getting all store categories into the first store

$storeId = $this->_storeManager->getStore()->getId();
$categories = $this->_categoryCollectionFactory->create()                              
            ->addAttributeToSelect('*')
             ->setStore($this->_storeManager->getStore());
         foreach ($categories as $category){
             $catId[] = $category->getId();
         }

         return $catId;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.