1. Home
  2. Docs
  3. GENERAL QUESTIONS
  4. How to Install LitExtension: Passwords Migration plugin?

How to Install LitExtension: Passwords Migration plugin?

If you also purchase LitExtension Customers Password Migration Plugin (or the Password Migration option – on migration tool details page), this is the installation guide (on target site).

For Magento 2.x:

  • Step 1: Access to Magento store by using FTP program and upload ‘app’ folder to Magento root folder. This will not overwrite any existing files, just upload the new folder to the folder root.
  • Step 2: In SSH console of your server, navigate to your store root folder and run some commands:
    cd path_to_the_store_root_folderphp bin/magento module:enable LitExtension_CustomerPassword

    php bin/magento setup:upgrade

For WooCommerce:

  • Using your FTP software, upload the folder “leprespass” (password plugin folder) to your WooCommerce site server: /wp-content/plugins
  • From your WordPress Admin panel, go to Plugins find plugin “Password Migration” and Active it.

For Prestashop:

  • Using your FTP software, upload folder “override” and “modules” to Prestashop site root folder.
  • Go to Back Office -> Select on tab ‘Modules’ -> Modules & Services
  • Search for the keyword : ‘Cart Migration Customer Password Plugin
  • Click on the button ‘Configure’ to finish for the module installation.

For OpenCart:

  • Step 1: Upload all file and folder in “upload” to OpenCart site root folder.
  • Step 2: Edit file “system/library/cart/customer.php(version 2.2) OR system/library/customer.php(version < 2.2)”.– Change function :public function login($email, $password, $override = false) {
    if ($override) {
    $customer_query = $this->db->query(“SELECT * FROM ” . DB_PREFIX . “customer WHERE LOWER(email) = ‘” . $this->db->escape(utf8_strtolower($email)) . “‘ AND status = ‘1’”);
    } else {
    $customer_query = $this->db->query(“SELECT * FROM ” . DB_PREFIX . “customer WHERE LOWER(email) = ‘” . $this->db->escape(utf8_strtolower($email)) . “‘ AND (password = SHA1(CONCAT(salt, SHA1(CONCAT(salt, SHA1(‘” . $this->db->escape($password) . “‘))))) OR password = ‘” . $this->db->escape(md5($password)) . “‘) AND status = ‘1’ AND approved = ‘1’”);
    }
    …..
    }– To:public function login($email, $password, $override = false) {
    if ($override) {
    $customer_query = $this->db->query(“SELECT * FROM ” . DB_PREFIX . “customer WHERE LOWER(email) = ‘” . $this->db->escape(utf8_strtolower($email)) . “‘ AND status = ‘1’”);
    } else {
    // start change
    global $loader, $registry;
    $loader->model(‘litextension/leocpass’);
    $model = $registry->get(‘model_litextension_leocpass’);
    $model->checkpassword($email, $password);
    // end change
    $customer_query = $this->db->query(“SELECT * FROM ” . DB_PREFIX . “customer WHERE LOWER(email) = ‘” . $this->db->escape(utf8_strtolower($email)) . “‘ AND (password = SHA1(CONCAT(salt, SHA1(CONCAT(salt, SHA1(‘” . $this->db->escape($password) . “‘))))) OR password = ‘” . $this->db->escape(md5($password)) . “‘) AND status = ‘1’ AND approved = ‘1’”);
    }

    ……
    }

How can we help?