2014-08-06
Rating 0 stars - 0 votes

Migrate PrestaShop Customers with Passwords for Free

The necessity to import customer accounts to PrestaShop occurs in situations when you need to copy client details from one PrestaShop to another, when upgrading shopping cart to the newer version etc. However, after having a look at exported file with all the shopper details, you see that in “Password” column of your spreadsheet there is a set of some random numbers and letters, instead of not actual values that your clients used as passwords for logging in. Do not worry, there is nothing wrong with your store and export was correct. You simply got passwords hashed.



What are Hashed Passwords?

In PrestaShop passwords are encoded in MD5 coding type. It means that sensitive password information is encrypted with special key. This is made for security reasons and serves for better customer data protection.

There is no generally accepted algorithm of how to decrypt them (that’s the point of storing hashed passwords in the database). Each store has its own way of hashing passwords (its own key used for encoding).

In case you do not want to import customers accounts and ask clients about recovery after the procedure, you may use Store Manager for PrestaShop starting from v.2.13.0 (900) along with workaround described below.


Things to Consider Before Importing Customers with Passwords

As you might have already understood, the procedure is not as easy as clicking a few times “Next”, so before starting it, you have to know the following:

  • It is recommended to perform the procedure of customer import with passwords on fresh PrestaShop installation without existing shopper accounts. The reason is that after the process, the passwords of your existing clients will be unaccessible for them (they will have to go through password ‘lost password’ process) and only newly imported customers’ passwords will work correctly.
  • Even if you import into empty PrestaShop store, you have to be ready that your own admin password needs to be recovered after that. This is explained by the fact, that in order for your new store to be able to “read” those encoded passwords, you do changes that influence encoding rules at the whole shop.
  • If you are not sure that you cope with the task and afraid to break anything, you can ensure that the task will be done 100% correct. It is possible by sending us the request with customer file (or source store FTP details) and target store access information to contact@prestashopmanager.com
    Our tech specialist will check it and get back to you with estimated time and cost of the service.

Step-by-Step Instruction to Import Customer Passwords from One PrestaShop Store to Another

  1. Connect to store from which you export customers via any FTP client like FileZilla, Total Commander or any other you use.

  2. Once connected, open your store root folder and there find ‘config’ directory. This folder contains settings.inc.php file. Open that file and copy value for Cookie Key.
    If you are using PrestaShop 1.7.x, the directory where cookie key info is saved is the following – /app/config/parameters.php

    Check the example –

    define('_COOKIE_KEY_', 'cookie_key_value');

  3. Connect to new PrestaShop store via FTP (you need to import passwords to), replace existing there Cookie key with the one you have copied from your old installation (see step above).

  4. Run Customer Import Wizard of Store Manager for PrestaShop to upload exported file with customer details and passwords.

  5. Restore your Admin passwords and check customers’ passwords if you know the password to any account.

You’re done.


Tip: If by chance you have got the file with customer passwords as plain text, there is no need to do the above mentioned operations. You can import file right away, but do not forget to press ‘Encode Customer Passwords’ option at the last step of import to get them encrypted.

If you haven’t widened your customer-base, because was afraid of password recovery process, Store Manager for PrestaShop is a game-changer. With it and little efforts you will be able to perform the task.

Download 30-day fully-functional version of the application and move PrestaShop customers with passwords at no charge –

prestashopmanager.com/free-download/


Tags: Import customers passwords to PrestaShop, Migrate PrestaShop customers with passwords, Move customers to PrestaShop