@nosto/search-js
    Preparing search index...

    Function addToCart

    • Adds a search hit to the cart.

      Parameters

      • type: SearchTrackOptions

        The type of search that the hit belongs to.

      • hit: SearchHitWithSku

        The search hit to add to the cart.

      • quantity: number = 1

        The quantity of the hit to add to the cart.

      Returns Promise<void>