Вопрос

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