So we are awarding Entries into a raffle calculated by the amount a person spends in our store. I am able to add code to cart.liquid calculate and display the number of entries in the shopping cart page.
The issue I am running to is that when the customer actually completes the order there isnt a datafield to capture this information in the order itself.
Any Ideas on how i can capture this data in the order info when a customer completes a purchase?
Any help would be greatly appreciated.
If you need to add any additional data to order/cart - there are only two ways
both of these can be done via js/jquery. Any other custom solution requires Storefront API or draft order API
When I work with notes it seems to be a text input, not a field that I can assign a value to, i could very well be doing something wrong.
Im looking i guess for more of a way to create a new form option/line item with a formula attached that records a specific output, not a customer input.
OK so, I was able to get this to work using notes/ I had to jerry-rig it to where there are drop down boxes with only one choice (so no input is really allowed), each box has the formula behind it that calculates relevant data to the order export. so I can now send the export to a sweepstakes company with a field they can use to determine accurate entries per customer.
Thank you for your help!!!
Did you look at Metafields? I think it’s more suited to what you are trying to accomplish.