Checkbox to add metadata to line item

adam-block
Visitor
3 0 0

Hi all,

I am trying to add a checkbox to the product page that says "Purchase as Gift" and need to pass that value to the cart item such that when the Order/Payment webhook fires with a collection of purchased items, I can see which were marked as gifts.

I could do this with separate SKUs (one for normal purchase, and one for the gift) but that is a pretty hacky solution, and I figure there must be a better way to do something like this.

Any suggestions or insights greatly appreciated!

Replies 0 (0)