Edit When adding more than one of the same product to the cart, the qty obviously increases, but it is possible to treat one or more products separately. Ie, if i add product A twice, it shows up as two separate products in the cart? // end edit
I have done the following.
1) Included order_custom1 and 2 on checkout. I use 1 to generate a random string which serves as the gift card number. I use 2 to save the value of the gift card (the item sub total)
2) Since the custom fields are inside the {items} tag pair, they are duplicated for each product (gift card) in the cart. However I'm beginning to think that it's not possible to submit more than one of each custom field, and that they are really supposed to be outside the {items} pair, is this correct?
The reason I ask is because when I output the custom fields in the order overview, I am only able to get the values saved within the last custom field (1 and 2). This is despite outputting them inside the {items} pair.
edit
If i can only submit this once per checkout, is there a way to only allow one product from a specific channel to be in the cart per order? In other words, can i force the user to only be allowed one "gift card" per order?