theDoris Posted October 9, 2017 Share Posted October 9, 2017 Hi, in v 1.6 when I want in everytime on click + button add for example 2 product I had to change in product.js this part of code // The button to increment the product value $(document).on('click', '.product_quantity_up', function(e){ e.preventDefault(); fieldName = $(this).data('field-qty'); var currentVal = parseInt($('input[name=+fieldName+]').val()); if (!allowBuyWhenOutOfStock && quantityAvailable > 0) quantityAvailableT = quantityAvailable; else quantityAvailableT = 100000000; if (!isNaN(currentVal) && currentVal < quantityAvailableT) $('input[name=+fieldName+]').val(currentVal + 1).trigger('keyup'); else $('input[name=+fieldName+]').val(quantityAvailableT); $('#quantity_wanted').change(); }); What part of code I had to edit in 1.7 ? Link to comment Share on other sites More sharing options...
Doccc01000 Posted February 8, 2019 Share Posted February 8, 2019 Hello, do you find a way to modify it on 1.7 ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now