Rammohan0504 commited on
Commit
39f8117
·
verified ·
1 Parent(s): 44afee8

Update templates/order_history.html

Browse files
Files changed (1) hide show
  1. templates/order_history.html +1 -1
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
- const 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
 
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