rsboarder Posted February 17, 2016 Share Posted February 17, 2016 Hi! I have multiple store and I want to show in template some additional blocks in stores. Is there any way to define which store is active and to show/hide block? Link to comment Share on other sites More sharing options...
Simone Salerno Posted February 18, 2016 Share Posted February 18, 2016 Current store is in Context::getContext()->shop Link to comment Share on other sites More sharing options...
rsboarder Posted February 18, 2016 Author Share Posted February 18, 2016 And now I have to create hook to be able to use this var in template, right? Link to comment Share on other sites More sharing options...
Simone Salerno Posted February 19, 2016 Share Posted February 19, 2016 //in template {assign var="current_shop" value=Context::getContext()->shop} Link to comment Share on other sites More sharing options...
rsboarder Posted February 19, 2016 Author Share Posted February 19, 2016 Thank you very very much! 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