Set An Order Metafield From Line Item Properties

If you’re looking to move some line item properties you’ve created – perhaps for customized products – into order metafields for a cleaner backend workflow, here are a couple of ways to do that.

Watch The Demo

Workflow Option #1 – Single Line Item Property

If there’s just a single line item property you care about out of potentially multiple line item properties, here’s a workflow including a custom code step that will make it a little easier to just grab a single property at a time:

And then here’s what your set metafield step will look like:

Workflow Option #2 – Loop Over All Line Item Properties

If you have a bunch of line item properties and want to set all or many of them as order metafields, here’s an easier way to do that:

And you could, of course, combine that with a filter to include or exclude specific properties as well.

How do I use this demo file?

  1. Add MESA from the Shopify App Store. Enjoy a 7-day free trial to start.
  2. Import this download to My Workflows. Navigate to your automations then follow the prompt to import a workflow. Upload the downloaded ZIP file from this demo.
  3. That's it! Personalize any step if you want. You got this.
  4. Questions? Shoot me an email: [email protected]
We literally wrote the book on Shopify automation

Learn how to make Shopify work easier with your business processes.

Get the playbook - Free!

shopify automation playbook PDF