@jenny09yop1298 you can check the below link once.
https://webkul.com/blog/how-to-load-store-specific-category-in-magento-2/
Hope it helps.
Thanks
please use the below code:
public function __construct( \Magento\Catalog\Model\CategoryFactory $categoryFactory ) { $this->categoryFactory = $categoryFactory; } public function execute() { $category = $this->categoryFactory->create()->setStoreId(2)->load(4); //here 2 is the store id of the second store }
If it helps you, please accept it as solution and give kudos.
Regards
Hello @jenny09yop1298
You can refer https://magento.stackexchange.com/questions/128547/how-to-get-category-collection-per-store-in-magen... for the solution.
Hope it helps.
@jenny09yop1298 you can check the below link once.
https://webkul.com/blog/how-to-load-store-specific-category-in-magento-2/
Hope it helps.
Thanks
please use the below code:
public function __construct( \Magento\Catalog\Model\CategoryFactory $categoryFactory ) { $this->categoryFactory = $categoryFactory; } public function execute() { $category = $this->categoryFactory->create()->setStoreId(2)->load(4); //here 2 is the store id of the second store }
If it helps you, please accept it as solution and give kudos.
Regards