Rammohan0504 commited on
Commit
4b7908a
·
verified ·
1 Parent(s): 334e530

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +3 -3
templates/cart.html CHANGED
@@ -124,7 +124,7 @@
124
  </div>
125
  <div class="cart-item-actions">
126
  <div class="text-primary">
127
- <span class="base-price" data-item-name="{{ item.Name }}">{{ item.Price__c }}</span>
128
  </div>
129
  <button class="btn btn-danger btn-sm" onclick="removeItemFromCart('{{ item.Name }}')">Remove</button>
130
  </div>
@@ -212,10 +212,10 @@
212
  quantityInput.value = quantity;
213
 
214
  // Update price in UI
215
- priceElement.innerText = `$${data.new_item_price.toFixed(2)}`;
216
 
217
  // Update subtotal dynamically
218
- subtotalElement.innerText = `Subtotal: $${data.subtotal.toFixed(2)}`;
219
  } else {
220
  alert('Error updating quantity: ' + data.error);
221
  }
 
124
  </div>
125
  <div class="cart-item-actions">
126
  <div class="text-primary">
127
+ $<span class="base-price" data-item-name="{{ item.Name }}">{{ item.Price__c }}</span>
128
  </div>
129
  <button class="btn btn-danger btn-sm" onclick="removeItemFromCart('{{ item.Name }}')">Remove</button>
130
  </div>
 
212
  quantityInput.value = quantity;
213
 
214
  // Update price in UI
215
+ priceElement.innerText = `${data.new_item_price.toFixed(2)}`;
216
 
217
  // Update subtotal dynamically
218
+ subtotalElement.innerText = `Subtotal: ${data.subtotal.toFixed(2)}`;
219
  } else {
220
  alert('Error updating quantity: ' + data.error);
221
  }