Skip to content

Instantly share code, notes, and snippets.

@GreenGeorge
Created April 8, 2020 13:48
Show Gist options
  • Save GreenGeorge/442ece84f116a343daac3fe4b95b83fd to your computer and use it in GitHub Desktop.
Save GreenGeorge/442ece84f116a343daac3fe4b95b83fd to your computer and use it in GitHub Desktop.
// ...
const raffleObject = {
product: product.handle,
variant: form.size,
timestamp,
identity_no: identityNo,
instagram_handle: instagramHandle,
phone,
};
CF.customer.set('raffle', [raffleObject]);
const result = await CF.customer.save({
redirect: true,
saveColumns: [
'raffle_codes',
'identity_no',
'phone',
'instagram_handle',
'raffle',
],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment