Using Slide Cart with Bold Subscriptions

Slide Cart is compatible and can be used with Bold Subscriptions. To integrate it with our app, follow the steps below:

1. Make sure to enable Slide Cart's app embed in your theme editor under App Embeds.

  1. Place the following snipped below the opening <body> tag in the theme.liquid file.
<script>
  window.SLIDECART_UPDATED = function (cart) {
    if (
      typeof window.BOLD !== "undefined" &&
      typeof window.BOLD.common !== "undefined" &&
      typeof window.BOLD.common.cartDoctor !== "undefined"
    ) {
      var c = cart
      var newCart = window.BOLD.common.cartDoctor.fix(cart)
      for (var i = 0; i < newCart.items.length; i++) {
        var item = newCart.items[i]
        c.items[i].line_price = item.line_price
        c.items[i].original_line_price = item.original_line_price
      }
      c.total_discount = c.total_discount + (cart.total_price - newCart.total_price)
      c.total_price = newCart.total_price;
      window.SLIDECART_SET_CART(c);
    }
  };
</script>

It should look like this:

If you need help or the integration is not working, do not hesitate to contact us.

Still need help? Contact Us Contact Us