Collecting a gift recipients email on the cart

Topic summary

Goal: take a gift recipient’s email captured as a cart attribute (e.g., {{ cart.attributes[“giftee-email”] }}) and add it as a contact in Shopify or directly into Klaviyo to send gift information.

Status: The email field on the cart is working and the value is stored on the order. No mechanism yet to create a Shopify contact or push to Klaviyo.

Proposed approaches:

  • Use the Mechanic app (Shopify automation) to create customers/contacts from the captured email and/or sync to Klaviyo.
  • Use third‑party automation services (Zapier or Integromat/Make) to move the attribute from Shopify orders into Klaviyo as a profile or into Shopify as a customer.
  • Hacky fallback: submit Shopify’s contact form programmatically with the giftee email to create a contact, but it may not include post‑order data.

Key terms:

  • Klaviyo: email marketing automation platform.
  • Cart attribute: custom data stored with the cart/order in Shopify.
  • Mechanic: Shopify app for automating workflows via scripts.

Outcome: No decision yet; thread remains open with suggested tools to implement the sync.

Summarized with AI on February 27. AI used: gpt-5.

Hey guys,

I’m trying to add a gift recipients email address collected on the cart to my email list in Klaviyo so we can email them the gift information.

I’m able to collect the email address as a cart attribute and it successfully adds to the order using the input tag below:


      
      
    

However I need to then add that {{ cart.attributes[“giftee-email”] }} into shopify as a contact or directly into Klaviyo so that I can email them.

Any thoughts on how I can do that?

usemechanic app to automate something like that, or third party services like zapier , integromat

Contact me if you need a mechanic script to create customers from those emails

An alternative non-cohesive hack would be to submit a contact form on their behalf using the giftee-email, you’d have the contact , but not necessarily any post-order creation data.