Jump to content

Recommended Posts

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...