Copy Cart Attributes and Line Item Properties to Order Metafields

4 min setup
No coding required
Runs automatically

Custom options from Infinite Options and cart attributes land on the order as properties, where reports, filters and other apps can't use them. This workflow copies them into order metafields as soon as the order is placed, so they're structured and searchable.

infinite options logo icon
An order with Infinite Options choices comes in
Shopify logo icon
Get the order's cart attributes and line items
Go through each property and attribute
Shopify logo icon
Save each value as an order metafield in Shopify

How it works

4 steps to make product options and cart attributes usable everywhere

infinite options logo icon

An order with Infinite Options choices comes in

App connector: Infinite Options • Time to complete: 1 minute

Runs when a new order includes options from Infinite Options.

Shopify logo icon

Get the order's cart attributes and line items

App connector: Shopify • Time to complete: 1 minute

Retrieve the order to read its note attributes and each line item's properties.

Go through each property and attribute

App connector: Loop • Time to complete: 1 minute

Loop over the note attributes and line item properties, skipping names that start with an underscore.

Shopify logo icon

Save each value as an order metafield in Shopify

App connector: Shopify • Time to complete: 1 minute

Set a metafield in a namespace such as custom, with a key from the property name in snake_case and the value as text. Line item properties get the line's SKU in the key so values from different items don't collide.

Trusted by 1,000+ merchants
Logo: Rothy's Logo: Adidas Logo: Allure Logo: GQ Logo: DraftKings Logo: Chubbies Logo: Made In Cookware Logo: MUD/WTR

Ready to make product options and cart attributes usable everywhere

Get setup in 4 minutes.

Use this template →

FAQs

Why copy properties into metafields?

Metafields can be shown in the admin, used in order filters, sent to fulfillment apps and read by reports. Properties mostly can't.

Do I need to create metafield definitions first?

No, but adding definitions in Shopify settings lets you see and filter by them in the admin.

Does it work without Infinite Options?

Yes. Swap the trigger for Shopify's Order Created to copy any line item properties.

Personalize this template

Customize this workflow even further:

Set custom delays
Schedule actions to trigger after a set time period, such as sending follow-up emails 3 days after an event.
Chain multiple actions
Connect several steps together in one workflow, like tagging data, updating records, and notifying your team simultaneously.
Store data in tables
Save order details, customer preferences, or custom metrics in your own database for reference and reporting.
Deploy AI agents for smart decisions
Let AI agents evaluate complex scenarios and choose the right action path based on your defined rules.

You're in good company

"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Rothy's

make product options and cart attributes usable everywhere

4 min setup • Fully supported if you need help