This cart is great, and it's only problem, as far as I can tell, is that it doesn't send product IDs at checkout, so you can validate with a database. An easy fix is to add 'item_id' element when adding to cart, and adding this line after line 1158:
data['itemid' + counter] = item.get("id");
This cart is great, and it's only problem, as far as I can tell, is that it doesn't send product IDs at checkout, so you can validate with a database. An easy fix is to add 'item_id' element when adding to cart, and adding this line after line 1158: data['itemid' + counter] = item.get("id");