Wrong qty for ajax add to cart
-
Made a minimal order qty for category, found a bug. Although data-quantity=”3″, cart qty=1.
In file auxin-elements/public/assets/js/scripts.js
line 72
original codeif ( $(this).parents('.aux-shop-quicklook-modal')) { quantity = $(this).parents('.aux-shop-quicklook-modal').find('.quantity input').val(); }
works always, should be changed to
if ( $(this).parents('.aux-shop-quicklook-modal').length) { quantity = $(this).parents('.aux-shop-quicklook-modal').find('.quantity input').val(); }
- The topic ‘Wrong qty for ajax add to cart’ is closed to new replies.