Integration Steps for Magento 2

Pre-Install:

There are 2 methods to integrate Klevu extension:

  1. Using composer method
    • Please make sure to remove any older version (i.e. < 2.1.1) before installing
      the current version. If you used composer method to install the plugin, use the
      following command to uninstall it.

      composer remove klevu/module-search
    • Please remove references of Klevu Search plugin from database as well, by
      deleting

      • tables prefixed klevu_
      • rows in setup_module for entries starting with klevu_
    • Use the following command to install the latest plugin
      composer require klevu/module-search
  2. Using Manual Klevu Search metapackage installation
    • Please make sure to delete Klevu directory from app/code (if version < 2.1.1)
    • Please remove references of Klevu Search plugin from database as well, by deleting
      (if version < 2.1.1)

      • tables prefixed klevu_
      • rows in setup_module for entries starting with klevu_
    • 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

Install and Configure:

  1. Open terminal/command prompt in your operating system and go to <magento2-root-folder> 
  2. Execute the following two commands
    php bin/magento setup:upgrade

    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. Go to Magento2 Admin Panel
  5. Go to Stores → Configuration
  6. Go to Klevu → Search Configuration
  7. Click on Start Configuration Wizard
  8. Register a New User OR if you already have a Klevu account, login into your Klevu account
  9. Select a plan and start 14-Day risk free trial
  10. Configure a store
    • You need to configure Klevu Search separately on each storeview. Choose a storeview from the dropdown to configure the Klevu Search on it.
    • Select option for How do you want to display product prices in search?
    • Which base URL would you like to use for products in search results?:
      • Unsecure: This will ask the Klevu Search plugin to use the Base URL from System → Configuration → Web → Unsecure
      • Secure: This will ask the Klevu Search plugin to use the Base URL from System → Configuration → Web → Secure
  11. Click on the Finish and Sync button to synchronise your products to Klevu