Using Slide Cart with Also Bought

Slide Cart is compatible and can be used with Also Bought. It should mostly work out of the box, but an additional snippet needs to be added in order to fix the prices in cart.

Pre-requisites:

  1. Make sure you've installed the fast-install snippet. Detailed instructions can be found here.

Once the pre-requisites have been met place the following snippet below the fast install snippet.

<script>
  document.addEventListener("DOMContentLoaded", function() {
    $(document).on('mouseup', '.cbb-also-bought-add-to-cart-button', function() {
      setTimeout(function() {
        window.SLIDECART_UPDATE()
        window.SLIDECART_OPEN()
      }, 500)

      setTimeout(function() {
        window.SLIDECART_UPDATE()
      }, 1000)
    })
  })
</script>

If you need help or it's not working, do not hesitate to reach out.

Stay in the loop

Sign up for the AppHQ newsletter! We'll keep you up to date on app releases, updates, and blog postings.