tidjean Posted October 10, 2013 Share Posted October 10, 2013 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 More sharing options...
kwileo Posted November 4, 2013 Share Posted November 4, 2013 (edited) Hi, You can try : Shop::setContext(Shop::CONTEXT_SHOP, 2); Context::getContext()->shop->id = 2; This works. Edited November 4, 2013 by kwileo (see edit history) Link to comment Share on other sites More sharing options...
tidjean Posted November 4, 2013 Author Share Posted November 4, 2013 Thank you, I will try that! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now