shoppingCartInit(); function shoppingCartInit() { shoppingCartAppend(); let DELETE_FILTER = null; let insufficientQtyActions = { moreQtyAdd(e) { $(e.target).parents('.mainselectcontainer').find('.insufficientqty').removeClass('d-none'); }, moreQtyRemove(e) { $(e.target).parents('.mainselectcontainer').find('.insufficientqty').addClass('d-none'); } } function shoppingCartAppend() { let data = getCartData(); if (!data) { $('.emptyShow').removeClass('d-none'); $('.checkoutbtn').addClass('d-none'); return; }; let html = ''; let products = data; // for(let i=0;i
Insufficient quantity
` } function shoppingCartDesktopHTML({ id, img, name, price, description, quantity, total, totalQty, productid, itemid }) { const [currencySymbol, amt] = getCurrencySymbol(price); let tamt = 0; { const [currencySymbol, amt] = getCurrencySymbol(total); tamt = amt; } return `
${name}
${name} ${description || ''} 8 Offers >

${currencySymbol} ${price}

${getQuantityHTML(quantity, totalQty, id)}

${price}

x
${name}
${name}

${currencySymbol}${tamt}

${description || ''}
${getQuantityHTML(quantity, totalQty, id)}
x
`; } }