parat10 Posted January 30, 2014 Share Posted January 30, 2014 Hello, I need to figure out how to get variable GroupId of customer in some module .php file. Has anybody some ideas or solutions?PrestaShop™ 1.4.10.0 Link to comment Share on other sites More sharing options...
vekia Posted January 30, 2014 Share Posted January 30, 2014 you have to create customer object first, for example $customer = new Customer(3); then in $customer object you will have whole customer definition, with group id Link to comment Share on other sites More sharing options...
parat10 Posted January 30, 2014 Author Share Posted January 30, 2014 Thank you very much. But how do I get the online customer's id. (or what should I write instead of (3) in new Customer(3); Thanks Link to comment Share on other sites More sharing options...
vekia Posted January 30, 2014 Share Posted January 30, 2014 you can use context object $this->context->customer->id 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