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 firstname.lastname@example.org
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
- Connect to store from which you export customers via any FTP client like FileZilla, Total Commander or any other you use.
- 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 –
- 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).
- Run Customer Import Wizard of Store Manager for PrestaShop to upload exported file with customer details and passwords.
- Restore your Admin passwords and check customers’ passwords if you know the password to any account.
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 –