How to find these settings...
- Online Store
- Click ••• (Theme Customizer)
- Edit code
- Open Assets > script.custom.js
Add custom Javascript to various events without having to edit the original files.
Variant Change
document.addEventListener('_changeVariant', function(event) {
//console.log('Variant change')
});
Cart Update
document.addEventListener('cartItems', function(event) {
//console.log('Cart has been updated')
});