How can I update my 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 });

Alternatively, in case you don't use jQuery, you can listen for the event like this:

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.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.