How do I export the current line item SKU from a Shopify order?

The line item data of a Shopify order is historical. If you change the value of the SKU field of the product variant associated with the line item after the order was already created, the order data won't change and will still use the original SKU value.

However, it's possible for EZ Exporter to export the current SKU assigned to the product variant by doing an additional lookup against the current product variant data.

To include this in your Shopify order export, simply use the value below in a Custom Field:

{{ line_items.variant.sku }}

We intentionally didn't include this field in the Fields selection to avoid confusion and we expect most merchants will need the historical value instead of the current value when exporting order data.


Related Articles:


App: EZ Exporter

Tags: shopify order export