IeM Posted November 21, 2013 Share Posted November 21, 2013 Hi, I need to add records to the 'customer_group' table via the Prestashop(1.5.6.0) webservice, however, I can not find how to create webservice permissions for this table. At the moment I can update the 'customer' default group via the webservice accessing the customer table, but when I do this I also need to add extra group associations for the same user. This functionality via another application is required to give users instant access rights. Any ideas how to achieve this? Thanks 1 Link to comment Share on other sites More sharing options...
darshanmodh Posted March 24, 2014 Share Posted March 24, 2014 Hi, I have same problem. When I'm inserting new customer from webservice, the customer is inserted successfully and id_default_group field of table ps_customer recieved value, but the ps_customer_group table gets wrong entry for this insertion. id_group field of same table always insert with 0, that is wrong groupId. And as the result, when I'm trying to login with that user which was inserted using webservice the system stuck, Header and all the products got disappeared, I can't even navigate to home page of prestashop.Any idea how to add entry in ps_customer_group via webservice? Thanks. Link to comment Share on other sites More sharing options...
pavel2015 Posted September 4, 2016 Share Posted September 4, 2016 Hello! $this->xml->customer[0]->email = 'email'; $this->xml->customer[0]->passwd = 'password'; .... $this->xml->customer[0]->id_default_group = 3; $this->xml->customer[0]->associations->groups->group->id = 3; Good luck! 1 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