Customizing Add to Cart Functionality

  1. Open vendor/klevu/module-addtocart/view/frontend/templates/klevu/addtocart/index.phtml and look for the klevu_addtocart(id,url,qty) function.
  2. When a shopper clicks on the add to cart button in the search results, Klevu Search calls the above function with the respective parameters.
  3. You can change the code of this function as per your requirements.