Jump to content

tidjean

Recommended Posts

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.

Link to comment
Share on other sites

  • 4 weeks later...

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...