getAddonsTotal function
Implementation
double getAddonsTotal(){
double total = 0;
for (var item in productData.addon)
if (item.selected)
total += (item.needCount*item.price);
return total;
}
double getAddonsTotal(){
double total = 0;
for (var item in productData.addon)
if (item.selected)
total += (item.needCount*item.price);
return total;
}