Update Theme Cart with Shop the Look
For every item added from Shop The Look, you'll get a jQuery event named 'stl.updateCartDetails'
.
You can use this event to update your store cart:
$('body').on('stl.updateCartDetails', function(evt, cart) {
// call the function to reload the cart here
});
document.addEventListener('stl.updateCartDetails', function (cart) {
// call the function to reload the cart here
}, false);
Also when the app widget is loaded, there is a jQuery event named 'stl.widgetHasBennLoaded' that you can use.