I want to get category ids of specific store.
$product->getCategoryIds()
This will get all categories of product
Array ( [0] => 63 [1] => 178 )
63 is category of store 1 and 178 is category of store 2 but I want only category 63.
categorymagento2store-id
I want to get category ids of specific store.
$product->getCategoryIds()
This will get all categories of product
Array ( [0] => 63 [1] => 178 )
63 is category of store 1 and 178 is category of store 2 but I want only category 63.
Best Answer
use
\Magento\Store\Model\StoreManagerInterface
for current store and apply it in your queryTry this