This commit is contained in:
Ludovic CANDELLIER
2022-11-11 13:05:40 +01:00
parent dae8156164
commit ebe7ba5f6c
104 changed files with 1212 additions and 764 deletions

View File

@@ -49,9 +49,7 @@
$('.basket-quantity').change(function() {
var offer_id = $(this).data('id');
var quantity = $(this).val();
var $row = $(this).parents('.row');
console.log("add basket");
console.log(quantity);
var $row = $(this).closest('.row');
updateBasket(offer_id, quantity, function() {
calculatePrice($row);
calculateTotal();
@@ -73,8 +71,6 @@
}
function calculatePrice($that) {
console.log('calculatePrice');
console.log($that);
var quantity = $that.find('.basket-quantity').val();
var price = $that.find('.basket-price').text();
var total_price = fixNumber(quantity * price);