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 =`

Order${current_orderSerialDate} (${order_qty} items)

Order placed on ${current_orderDate}

Paid by Credit Card

`; $('.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') })