Sia così:
che così:Code:for (n=0; n<cart.length && n<15; n++)
{
part = cart[n].price*cart[n].qty;
tot = part + tot;
}
tot è NaN. Perchè?Code:for (n=0; n<cart.length && n<15; n++)
{
part = cart[n].price*cart[n].qty;
tot += part;
}
Ne so un cazzo di sto AS. Prima volta che lo vedo :\