Uchiha Posted April 19, 2013 Share Posted April 19, 2013 Hi! To do this, I know I have to insert the data in the ps_customer table. But I don't know what to insert in some columns, like secure_key and optin. How could I do this? Thanks! Link to comment Share on other sites More sharing options...
sadlyblue Posted April 19, 2013 Share Posted April 19, 2013 As rocky said on another post: I'm currently working on an osCommerce Import module with Tomer. The secure_key is just a random key. Use the following code to generate it: md5(uniqid(rand(), true)) Link to comment Share on other sites More sharing options...
Uchiha Posted April 19, 2013 Author Share Posted April 19, 2013 As rocky said on another post: Thanks. But could this impact in user's login? Link to comment Share on other sites More sharing options...
benjamin utterback Posted April 19, 2013 Share Posted April 19, 2013 Hi Uchiiha, you can also add your customers via CSV, or through the Back Office Admin. Link to comment Share on other sites More sharing options...
Uchiha Posted April 19, 2013 Author Share Posted April 19, 2013 Hi Uchiiha, you can also add your customers via CSV, or through the Back Office Admin. Thanks. I know, but I'll develop a little interface to do some stuff. One of those is the quick customer register. Link to comment Share on other sites More sharing options...
benjamin utterback Posted April 19, 2013 Share Posted April 19, 2013 Oh okay, actually I don't know what fields need to be present in order to add a customer through SQL. Link to comment Share on other sites More sharing options...
tomerg3 Posted April 19, 2013 Share Posted April 19, 2013 It is best to use the Prestashop Customer class to do it, that way you will be sure all the fields are actually valid (IE content complies with all the length / type limits) Link to comment Share on other sites More sharing options...
Recommended Posts