Jump to content

How to get the shop id which i am accessing.


Genie

Recommended Posts

I have added multi shop functionality in my prestashop website and added a shop there. Now i can access http://10.10.0.201:3333/prestashop_test/redclient/ and http://10.10.0.201:3333/prestashop_test/ both shops. How can i get the shop id which i am accessing. I have created a module and now i want to get the shop id in front end view with the custom module page.

 

I have tried echo $id_shop = intval($cart->id_shop);

but this is returning 0.

 

Can any one tell me how to overcome this problem.

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