Added form PR #41

master
Mark Moffat 2019-02-09 13:35:41 +10:30
parent ac01568036
commit 53df3db937
1 changed files with 2 additions and 1 deletions

View File

@ -531,7 +531,8 @@ $(document).ready(function (){
});
$('.qty-btn-minus').on('click', function(){
$('#product_quantity').val(parseInt($('#product_quantity').val()) - 1);
var number = parseInt($('#product_quantity').val()) - 1;
$('#product_quantity').val(number > 0 ? number : 1);
});
$('.qty-btn-plus').on('click', function(){