JoelWebsites Posted November 28, 2014 Share Posted November 28, 2014 I am trying to get the shopname that is used in a varible.Please note that I am using Multistore I tried using $shop = $this->context->shop->isLogged(); but this is not working How do I get the shop name in variable thanks Link to comment Share on other sites More sharing options...
JoelWebsites Posted November 28, 2014 Author Share Posted November 28, 2014 (edited) And I am getting the error Catchable fatal error: Object of class Shop could not be converted to string in /home/freeecom/public_html/modules/tpsl/tpsl.php on line 31 on the line where i am trying to use it on a string..I want to use it as a string. Edited November 28, 2014 by joeljfernandes (see edit history) Link to comment Share on other sites More sharing options...
JoelWebsites Posted November 28, 2014 Author Share Posted November 28, 2014 I got it by using $this->context->shop->name; 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