Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // listener
- $('.cart-component--cart-item .quantity-component--input').on('quantity-component:update-value', function() {
- _this.updateProductQuantity.call( this );
- });
- // function
- updateProductQuantity: function() {
- $(this).parents('form').submit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement