Rhapsody Posted January 10, 2012 Share Posted January 10, 2012 I have a customer who registered and ordered with one email address. Subsequent to that order, he registered with his new email address and ordered with his new email address. Is there a way I can merge his old account / orders with his new account so everything shows up with his new email login? Edit: I used brute force approach with phpmyadmin access to database. I located and changed the id_customer filed in the various database tables associated with the old email address to that associated with the new email address. I located the following tables that have the id_customer field (ps_customer has the master id_customer filed): (all prefaced with ps_): address, cart, customer_group, customer_thread, message, orders, order_return, order_slip 1 Link to comment Share on other sites More sharing options...
bellini13 Posted January 10, 2012 Share Posted January 10, 2012 hi there, how have you been. it would take some manipulation in the database to associate the old orders with the new account, but it is certainly do-able. PM me if you would like to explore it further. Link to comment Share on other sites More sharing options...
Rhapsody Posted January 13, 2012 Author Share Posted January 13, 2012 Solved with the solution added to original post Link to comment Share on other sites More sharing options...
joe ramires Posted May 17, 2018 Share Posted May 17, 2018 I had similar kind of problem and found great solution for it : Combine guests module - http://prestamonster.com/en/home/15-combine-guests.html Those guys have unbelievable support - they helped me alot ! 1 Link to comment Share on other sites More sharing options...
DanielaPetkova Posted October 24, 2019 Share Posted October 24, 2019 (edited) So far did you found answer to that problem beside the brute force approach? I'm with 1.7.3 and still exist. Edited October 24, 2019 by DanielaPetkova (see edit history) Link to comment Share on other sites More sharing options...
danizaharie Posted December 14, 2022 Share Posted December 14, 2022 I have done it by database queries. Let's say the customer ID 123 is the customer that I want to keep. The next customers ids 501, 502, 503 will be merged with 123 id. Make sure you have all tables in your database, some tables are created by plugins, for sample ps_simpleblog_comment and ps_psgdpr_log. Make a full backup of your database before making any changes. update ps_address set id_customer=123 WHERE id_customer in (501,502,503); update ps_cart set id_customer=123 WHERE id_customer in (501,502,503); update ps_cart_rule set id_customer=123 WHERE id_customer in (501,502,503); update ps_customer_session set id_customer=123 WHERE id_customer in (501,502,503); update ps_customer_thread set id_customer=123 WHERE id_customer in (501,502,503); update ps_favorite_product set id_customer=123 WHERE id_customer in (501,502,503); update ps_guest set id_customer=123 WHERE id_customer in (501,502,503); update ps_mailalert_customer_oos set id_customer=123 WHERE id_customer in (501,502,503); update ps_message set id_customer=123 WHERE id_customer in (501,502,503); update ps_orders set id_customer=123 WHERE id_customer in (501,502,503); update ps_order_return set id_customer=123 WHERE id_customer in (501,502,503); update ps_order_slip set id_customer=123 WHERE id_customer in (501,502,503); update ps_product_comment set id_customer=123 WHERE id_customer in (501,502,503); update ps_product_comment_report set id_customer=123 WHERE id_customer in (501,502,503); update ps_product_comment_usefulness set id_customer=123 WHERE id_customer in (501,502,503); update ps_psgdpr_log set id_customer=123 WHERE id_customer in (501,502,503); update ps_simpleblog_comment set id_customer=123 WHERE id_customer in (501,502,503); update ps_specific_price set id_customer=123 WHERE id_customer in (501,502,503); update ps_ws_wishlist set id_customer=123 WHERE id_customer in (501,502,503); delete from ps_customer where id_customer in (501,502,503); delete from ps_customer_group where id_customer in (501,502,503); 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