Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move customer from one website to another in Magento?

I have 2 websites set up in Magento, each has one store in it. Each website has its own customer accounts. Now, I need to shutdown one website, and migrate all customer accounts from website A to website B, so that customers from website A's store can login to website B's store. What do I need to do to accomplish this? What to do if a customer has account on both website A's store and Website B's store?

like image 963
s-hunter Avatar asked Nov 28 '22 09:11

s-hunter


2 Answers

Wanna try a brutal idea?? It's inside my head and this is maybe a glitch of Magento.

  1. Go to your customer that wanted the store to be changed.

  2. Open your console on browser (firebug or something) enter image description here

  3. Find the html tag
<select id="_accountwebsite_id" name="account[website_id]" class=" required-entry required-entry select" disabled="disabled">
<option value="">-- Please Select --</option>
<option value="0">Admin</option>
<option value="1" selected="selected">Main Website</option>
</select>
  1. remove the disabled="disabled" and add the value of option to id that your store want.
<select id="_accountwebsite_id" name="account[website_id]" class=" required-entry required-entry select">
<option value="">-- Please Select --</option>
<option value="0">Admin</option>
<option value="0" selected="selected">Main Website</option>
</select>
  1. And Done. your customer store has been changed. enter image description here

Remember this is the brutal and not recommended idea. LOL

like image 92
Josua Marcel C Avatar answered Dec 04 '22 03:12

Josua Marcel C


Theres another, simpler way that just comes into my mind. Never tried this either. Go to System->Import/Export in your Admin and export your customers in a CSV file. Open this file with OpenOffice or LibreOffice, change the website and store code values and then try to import it again.

like image 22
ebonik Avatar answered Dec 04 '22 05:12

ebonik