Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <select onchange="updateNrOfProductsInCart(24, this.value);">
- <select onchange="updateNrOfProductsInCart(7, this.value);">
- <select onchange="updateNrOfProductsInCart(53, this.value);">
- $('.quantity-verification').each(function() {
- // Variables and other code that helps below.
- // I removed this as it would bload the page.
- // Adjusting select option to correct value
- $('.quantity-modifier-' + qvAlias + ' option').filter(function(){
- return this.text == qvQuantity;
- }).attr("selected", "selected").parent().trigger('change');
- // Updating the cart with the correct values.
- console.log('qvTitle='+qvTitle + 'n' + 'qvQuantity'+qvQuantity + 'n' + 'qvAlias'+qvAlias );
- // everything outputs perfectly in console log.
- }); // end of each function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement