Open navigation

Upgrading Extension

For Magento 2.4 and above, we've introduced a backward compatibility module to our extension, so there are new steps required for installing and upgrading Klevu Search. Please carefully follow the instructions below.

There are two methods to upgrade the Klevu Search extension:

1. Via Composer (recommended):For Magento 2.4+, before running composer update, please modify your project composer.json to remove the module we've introduced for backward compatibility. Do not add this 'replace' for Magento 2.3 or lower.

"require": {
...
},
"replace": {
"klevu/module-mysqlcompat": "*"
}

Then for all Magento versions, use the following command to upgrade the Klevu extension to the latest version:

composer update klevu/*

2. Via Manual Download:

  • Clone the following repositories from Github by executing below commands:
    • HTTPS: git clone https://github.com/klevu/productsearch.git
      • After cloning, please create folder structure app/code/Klevu/Search
      • Copy all the files which you have downloaded from above link to the Search folder
    • HTTPS: git clone https://github.com/klevu/content.git
      • After cloning, please create folder structure app/code/Klevu/Content
      • Copy all the files which you have downloaded from above link to the Content folder
    • HTTPS: git clone https://github.com/klevu/addtocart.git
      • After cloning, please create folder structure app/code/Klevu/Addtocart
      • Copy all the files which you have downloaded from above link to the Addtocart folder
    • HTTPS: git clone https://github.com/klevu/magento-troubleshoot.git
      • After cloning, please create folder structure app/code/Klevu/Troubleshoot
      • Copy all the files which you have downloaded from above link to the Troubleshoot folder

 For Magento 2.3 and below, one additional step is required to install or upgrade the module for backward compatibility. Do not clone this mysqlcompat module if you are using Magento 2.4+.

  • HTTPS: git clone https://github.com/klevu/mysqlcompat.git
    • After cloning, please create folder structure app/code/Klevu/MysqlCompat
    • Copy all the files which you have downloaded from above link to the MysqlCompat folder
After upgrading the repository, please follow the steps below:
  1. Open terminal/command prompt in your operating system and go to <magento2-root-folder> 
  2. Execute the following commands
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy 
  3. Go to <magento2-root-folder>/var/ folder and clear the following folders
    • cache
    • generation
    • page_cache
  4. Please perform full catalog sync by selecting the "All Data" option as per the steps given in the below guide:  Full Catalog Sync Guide

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.