airwiches Posted October 10, 2014 Share Posted October 10, 2014 Hi, I use the webservice to add customers from my DB to prestashop DB, I've got to pass customers data and insert, but I don't know add groups to associations register. I 've watched at customers/?schema=blank that associations are a subgroup. How can I add various groups to customer? Thanks. Link to comment Share on other sites More sharing options...
airwiches Posted October 10, 2014 Author Share Posted October 10, 2014 this is part of my code $infos_user = array( 'id' => '', 'id_default_group' => $idgroup, 'id_lang' => '1', 'newsletter_date_add' => '', 'ip_registration_newsletter' => '', 'last_passwd_gen' => date('Y-m-d H:i:s'), 'secure_key' => '', 'deleted' => '0', 'passwd' => $password, 'lastname' => $surname, 'firstname' => $name, 'email' => $email, 'id_gender' => '0', 'birthday' => '', 'newsletter' => '0', 'optin' => '0', 'website' => '', 'company' => $company, 'siret' => '', 'ape' => '', 'outstanding_allow_amount' => '0', 'show_public_prices' => '0', 'id_risk' => '0', 'max_payment_days' => '0', 'active' => '1', 'is_guest' => '0', 'id_shop' => $id, 'id_shop_group' => '1', 'note' => '', 'date_add' => date('Y-m-d H:i:s'), 'date_upd' => date('Y-m-d H:i:s'), 'associations' => How can fill this? ); Othe question, is that when I add one customer, I watch him at admin panel but I don't watch when I write the url http:/my-shop/customers/api Any solution? Link to comment Share on other sites More sharing options...
HaCos Posted October 20, 2014 Share Posted October 20, 2014 this is part of my code $infos_user = array( 'id' => '', 'id_default_group' => $idgroup, 'id_lang' => '1', 'newsletter_date_add' => '', 'ip_registration_newsletter' => '', 'last_passwd_gen' => date('Y-m-d H:i:s'), 'secure_key' => '', 'deleted' => '0', 'passwd' => $password, 'lastname' => $surname, 'firstname' => $name, 'email' => $email, 'id_gender' => '0', 'birthday' => '', 'newsletter' => '0', 'optin' => '0', 'website' => '', 'company' => $company, 'siret' => '', 'ape' => '', 'outstanding_allow_amount' => '0', 'show_public_prices' => '0', 'id_risk' => '0', 'max_payment_days' => '0', 'active' => '1', 'is_guest' => '0', 'id_shop' => $id, 'id_shop_group' => '1', 'note' => '', 'date_add' => date('Y-m-d H:i:s'), 'date_upd' => date('Y-m-d H:i:s'), 'associations' => How can fill this? ); Othe question, is that when I add one customer, I watch him at admin panel but I don't watch when I write the url http:/my-shop/customers/api Any solution? in order to extract data for customer 1 try: http://yourshop.com/api/customers/1 Link to comment Share on other sites More sharing options...
airwiches Posted October 23, 2014 Author Share Posted October 23, 2014 Thaks HaCos, I did it, but I don't undertand that . For this reason I ask it. I imagine that I have to put an array, I have tried but I haven't good result Link to comment Share on other sites More sharing options...
airwiches Posted October 23, 2014 Author Share Posted October 23, 2014 Excuse me HasCod if I do your solution I can see the data customer. I don't now how put associations in customer with webservice Link to comment Share on other sites More sharing options...
airwiches Posted October 23, 2014 Author Share Posted October 23, 2014 I have found how http://www.javierllamas.es/index.php/en/blog/46-agregar-associations-a-la-api-de-prestashop.html Link to comment Share on other sites More sharing options...
airwiches Posted October 30, 2014 Author Share Posted October 30, 2014 Excuse me, but this is not a solution. 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