klaus777 Posted December 11, 2013 Share Posted December 11, 2013 Hi, I am developing a new plugin and I need to find the list of stores within this plugin. I need to know, the store name, the store URL, and the store group. Any idea how to go about achieving this? Thanks. Klaus. Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 you mean multishop feature? or external shops that use your module? Link to comment Share on other sites More sharing options...
klaus777 Posted December 11, 2013 Author Share Posted December 11, 2013 Multishop. I have one Prestashop deployment and I have my plugin running on this Prestashop. And this prestashop has mutistore enabled. I want to find out what are the stores on this host Prestashop. Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 you can use static function Shop::getShops(); here is the definition of function: /** * Get shops list * * @param bool $active * @param int $id_shop_group * @param bool $get_as_list_id * @return array */ public static function getShops($active = true, $id_shop_group = null, $get_as_list_id = false) { 1 Link to comment Share on other sites More sharing options...
klaus777 Posted December 14, 2013 Author Share Posted December 14, 2013 Thanks. That's what I was looking for. Link to comment Share on other sites More sharing options...
vekia Posted December 14, 2013 Share Posted December 14, 2013 you're welcome glad to hear that i could help you a little i marked this topic as [solved] with regards, MIlos Link to comment Share on other sites More sharing options...
Recommended Posts