Spaces:
Sleeping
Sleeping
Update templates/order_history.html
Browse files
templates/order_history.html
CHANGED
@@ -126,7 +126,7 @@
|
|
126 |
<script>
|
127 |
function addToCart(itemName) {
|
128 |
const button = document.getElementById(itemName); // Get the button element by its ID
|
129 |
-
|
130 |
const itemImage = button.dataset.image; // Get image URL from data-image attribute
|
131 |
const category = button.dataset.category; // Get category from data-category attribute
|
132 |
const section = button.dataset.section; // Get section from data-section attribute
|
|
|
126 |
<script>
|
127 |
function addToCart(itemName) {
|
128 |
const button = document.getElementById(itemName); // Get the button element by its ID
|
129 |
+
let itemPrice = button.dataset.price; // Get price from data-price attribute
|
130 |
const itemImage = button.dataset.image; // Get image URL from data-image attribute
|
131 |
const category = button.dataset.category; // Get category from data-category attribute
|
132 |
const section = button.dataset.section; // Get section from data-section attribute
|