Search the Community
Showing results for tags 'set context'.
-
hello , I have a problem, I need to change my shop-> from the context. if I do this : echo Context::getContext()->shop->id; Shop::setContext(Shop::CONTEXT_SHOP, 2); echo "\n".Context::getContext()->shop->id; die(); This return : 1 1 But i have five shops on my multistore prestashop, maybe i do something wrong... I don't know. Thanks for your helping.
- 2 replies
-
- context shop
- set context
-
(and 3 more)
Tagged with:
-
Bonjour je suis en train d'ecrire mon module pour un site prestashop multistore et j'ai un soucis. J'essaie au de changer le context afin de change de store. echo Context::getContext()->shop->id; Shop::setContext(Shop::CONTEXT_SHOP, 2); echo "\n".Context::getContext()->shop->id; die(); Mais ceci me retourne : 1 1 quel est mon soucis? Merci de votre aide.
-
- context shop
- context shop id
-
(and 3 more)
Tagged with: