标签: magento locale observers multistore
我有一个多商店网站,我正在开发一个模块,当我从心愿单编辑产品并添加到购物车时,我需要在观察者中获取区域设置或商店ID。但它从两个商店返回相同的区域设置和商店ID。我在观察员中使用了以下内容。
Mage::app()->getStore()->getCode(); Mage::app()->getLocale()->getLocaleCode();
你能告诉我可能出现什么问题吗?