diff --git a/models/Order.php b/models/Order.php index 6e02aa3..79a0f6c 100755 --- a/models/Order.php +++ b/models/Order.php @@ -72,6 +72,8 @@ 'label_id', 'delivery_id', 'payment_id', + 'phone', + 'name' ], 'required', ], diff --git a/web/js/order.js b/web/js/order.js index eb23356..adbbb56 100755 --- a/web/js/order.js +++ b/web/js/order.js @@ -34,7 +34,8 @@ $(function() { var order = $(this) .data('id'); if (id.val() ) { - if(count.val()<=0) { + console.log(count.val()); + if(parseInt(count.val()) > 0) { var newCountVal = count.val(); } else { var newCountVal = 1; @@ -49,7 +50,6 @@ $(function() { }, function(data) { if (data.success) { var sum = $('#total-sum').text(); - console.log(sum); $('#total-sum') .html(parseInt(sum) + parseInt(data.price)); $('#product-rows') -- libgit2 0.21.4