wojodesign / simplecart-js

A simple javascript shopping cart that easily integrates with your current website.
simplecartjs.org
1.79k stars 489 forks source link

SendForm - getting back product ID #532

Open noxtras opened 6 years ago

noxtras commented 6 years ago

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");

jaggernaut08 commented 6 years ago

try adding add input type hidden as simplecart can recognize it