Skip to content

Commit

Permalink
order toal
Browse files Browse the repository at this point in the history
  • Loading branch information
Lescano713 committed Aug 16, 2024
1 parent 6fa27c2 commit 69f54b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ function uploadProducts(products){

function takeOffProducts(id){
findId(id).pQuantity -= 1;
uploadingCart(productsInCart)
uploadingCart(productsInCart);
orderTotal(2)
}


Expand All @@ -80,7 +81,10 @@ function getObjects(name, cost,id){
} else {
findId(id).pQuantity += 1;
}

uploadingCart(productsInCart);
orderTotal(2)
// orderTotal(product.pQuantity)
console.log(productsInCart);
}

Expand Down Expand Up @@ -140,6 +144,7 @@ function findId(id){
}

function buttonAddRemove(button,name,cost,id){
// orderTotal(2)
button.innerHTML = "";
// let amount = 0;

Expand Down

0 comments on commit 69f54b0

Please sign in to comment.