longy Posted March 1, 2014 Share Posted March 1, 2014 (edited) i'm trying to register customers from external script (no prestashop module) in prestashop 1.5.6.2.Now i'm inserting in ps_customer table: "email"=>"[email protected]", "firstname"=>"foo", "lastname"=>"bar", "passwd"=>ToolsCore::encrypt("foobar"), "active"=>1, "secure_key"=>md5(uniqid(rand(), true)), "id_default_group"=>3, "id_lang"=>1, "id_risk"=>0, "birthday"=>"0000-00-00", "newsletter_date_add"=>"0000-00-00", "max_payment_days"=>0, "date_upd"=>$data, //$data = date("Y-m-d H:i:s") "date_add"=>$dataFrom Back Office I've no problems i can see customer and his data.In Front Office customer can login, but after login can't see products or categories, can only see cms and account pages.In desktop theme i can see only logo, a black bar with link to mobile theme.In mobile theme i can see all menus, but clicking on a category i get 'Error Loading Page' and in console I get: "NetworkError: 403 Forbidden - myhost/index.php?id_category=X&controller=category".What's the correct way to register a customer from an external script? Edited March 1, 2014 by longy (see edit history) Link to comment Share on other sites More sharing options...
longy Posted March 1, 2014 Author Share Posted March 1, 2014 Maybe solved. After inserting a customer you must associate it with a group in the table ps_customer_group Link to comment Share on other sites More sharing options...
El Patron Posted March 2, 2014 Share Posted March 2, 2014 Maybe solved. After inserting a customer you must associate it with a group in the table ps_customer_group yes this makes perfect sense, thanks for sharing. also you might like this: doc.prestashop.com/display/PS15/Using+the+PrestaShop+Web+Service Link to comment Share on other sites More sharing options...
Recommended Posts