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, so once you have installed the app, simply enable the integration toggle under the Appearance & Language section of Slide Cart's dashboard.

Pre-requisite: Make sure you've enabled Slide Cart's app embed in your store's theme:

Once the prerequisites have been met, place the following snippet underneath the <body> tag in the theme.liquid file.

<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>
<br>

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

Still need help? Contact Us Contact Us