Update cart.js

This commit is contained in:
Dylanomz
2025-02-14 08:56:58 +01:00
parent 6a58fa87f4
commit b2bbf6ccac

View File

@@ -56,3 +56,9 @@ function closeModal() {
document.getElementById('modal').style.display = 'none';
}
let cartCount = 0;
function addToCart() {
cartCount++;
document.querySelector('.cart-count').textContent = cartCount;
}