1

is it possible to retrieve the current selected store view in a multi store magento backend? i'm in an admi page (Catalog -> manage Categories -> general Information) and i have to retrieve the current selected store / store id. is it possible and how?

thanks

4

1 に答える 1

2

これにはいくつかのオプションがありますが、使用できるはずです。

Mage::app()->getRequest()->getParam('store');

特定のIDを探していない場合は、次を使用できます

Mage::getModel('core/store')->getCollection()->load()->getAllIds();

使用する独自の変数を割り当てます。

于 2012-05-22T15:17:27.163 に答える