moonmosaic Posted March 28, 2014 Share Posted March 28, 2014 I have two different prestashop websites one is version 1.2 and the other one is 1.4. I want to merge the databases and stop using the 1.2 prestashop version altogether. However the cookie keys are different and I have not been able to figure out how to do this without my customers having to change passwords. I need someone who can overcome this problem so my customers from the 1.2 version can log into the 1.4 version. I only need customers and orders merged and all relevant records.Please let me know the time frame for this work and if you have done such a project before. Thank you. Skills required: MySQL, PHP Link to comment Share on other sites More sharing options...
bellini13 Posted March 29, 2014 Share Posted March 29, 2014 one option is to import the 1.2 customers into 1.4 leaving their passwords alone. then add another cookie key entry into the config which is the 1.2 cookie key. Then you customize the authentication controller so it does the following 1) first try to authenticate the customer using the 1.2 key. 2) if #1 succeeds, then you rewrite the password to the database using the 1.4 key and the customer gets logged on 3) if #1 fails, then you try to authenticate the customer using the 1.4 key. 4) if #3 also fails, then show failed logon message (standard process) 5) if #3 succeeds, then the customer is logged in At some point you hope that all 1.2 customers logged on and have converted over to 1.4, and you can remove this customization. 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