This commit is contained in:
2023-04-20 10:27:32 +05:30
parent 4450ecebe0
commit c014fd0b61
10 ha cambiato i file con 741 aggiunte e 0 eliminazioni
+26
Vedi File
@@ -0,0 +1,26 @@
let current_orderDate =window.localStorage.getItem('orderDate')
let current_orderSerialDate =window.localStorage.getItem('orderSerialno')
let order_itemname =window.localStorage.getItem('orderItemname');
let order_itemtotal =window.localStorage.getItem('orderitemTotal');
let order_nettotal =window.localStorage.getItem('netTotal');
let order_qty = window.localStorage.getItem('Qty')
let order_tax = window.localStorage.getItem('tax')
let Local_keys_update =['tax','Qty','netTotal','orderitemTotal']
let summary =` <div class="card-body">
<div>
<p class="mb-0 fs-6 fw-500">Order<span>${current_orderSerialDate}</span></span><span class="text-secondary fs-9"> (${order_qty} items)</p>
<p class="mb-0 fs-6">Order placed on ${current_orderDate}</p>
<p class="mb-0 fs-9">Paid by Credit Card</p>
</div>`;
$('.order_price').html(order_itemtotal)
$('.order_tax').html(order_tax)
$('.Order_total').html(order_nettotal)
$('.order_itemname').html(order_itemname)
$('.order-summary').html(summary);
$('.back_to_orders').click(function(){
debugger
for (key of Local_keys_update) {
window.localStorage.removeItem(key);
}
$(this).attr('href','./myaccount.html')
})