nagasurendra commited on
Commit
644a994
·
verified ·
1 Parent(s): d8f0b85

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +3 -0
templates/cart.html CHANGED
@@ -170,7 +170,10 @@
170
  </div>
171
 
172
  <script>
 
 
173
  function updateQuantity(action, itemName, customerEmail) {
 
174
  // Find the quantity input field for the specific item
175
  const inputField = document.querySelector(`input[data-item-name="${itemName}"]`);
176
  // Find the subtotal field for updating it dynamically
 
170
  </div>
171
 
172
  <script>
173
+
174
+ const customerEmail = "{{ session.get('user_email', '') }}";
175
  function updateQuantity(action, itemName, customerEmail) {
176
+ const customerEmail = "{{ session.get('user_email', '') }}";
177
  // Find the quantity input field for the specific item
178
  const inputField = document.querySelector(`input[data-item-name="${itemName}"]`);
179
  // Find the subtotal field for updating it dynamically