CantidadCosto x unidadCosto total '); itemlist = 0; for (var i = 0; i <= fulllist.length; i++) { if (fulllist.substring(i,i+1) == '[') { itemstart = i+1; } else if (fulllist.substring(i,i+1) == ']') { itemend = i; thequantity = fulllist.substring(itemstart, itemend); itemtotal = 0; itemtotal = (eval(theprice*thequantity)); temptotal = itemtotal * 100; var tax = itemtotal / 100 * (0 - 0); tax = Math.floor(tax * 100)/100 totprice = totprice + itemtotal + tax; itemlist=itemlist+1; document.writeln(''+theitem+''+thequantity+''+theprice+''+alterError(itemtotal)+''); } else if (fulllist.substring(i,i+1) == ',') { theitem = fulllist.substring(itemstart, i); itemstart = i+1; } else if (fulllist.substring(i,i+1) == '#') { theprice = fulllist.substring(itemstart, i); itemstart = i+1; } } document.writeln('Total'+alterError(totprice)+' '); document.writeln(''); } function removeItem(itemno) { newItemList = null; itemlist = 0; for (var i = 0; i <= fulllist.length; i++) { if (fulllist.substring(i,i+1) == '[') { itemstart = i+1; } else if (fulllist.substring(i,i+1) == ']') { itemend = i; theitem = fulllist.substring(itemstart, itemend); itemlist=itemlist+1; if (itemlist != itemno) { newItemList = newItemList+'['+fulllist.substring(itemstart, itemend)+']'; } } } index = document.cookie.indexOf("TheBasket"); document.cookie="TheBasket="+newItemList; top.location = "estado.htm"; } function clearBasket() { if (confirm('¿Confirma que desea reestablecer el carrito?')) { index = document.cookie.indexOf("TheBasket"); document.cookie="TheBasket=."; top.location = "estado.htm"; } }
Estado del Carrito [ Carrito de Compra | Estado | Formulario ]




[ Reestablecer Carrito ]