質問

I loaded a product.

Now I need to find out which stores it's assigned to (a list of store IDs will do).

Also - I need the same for category.

役に立ちましたか?

解決

Found it: apparently there's a method getStoreIds() that returns just that.

$product->getStoreIds();
$category->getStoreIds()
ライセンス: CC-BY-SA帰属
所属していません magento.stackexchange
scroll top