Replace a SKU in New Shopify Orders Automatically
When a product is discontinued, renamed or replaced by a new version, orders can keep coming in for the old SKU and someone has to edit each one by hand. This workflow watches new Shopify orders, and when a line item has the old SKU, it edits the order to swap in the replacement variant at the same quantity and tags the order so your team knows it changed.
How it works
7 steps to swap an old SKU for its replacement on every new order
Shopify Order Created (Trigger)
Shopify Order Created (Trigger)
Loop
Loop
Filter
Filter
Shopify Retrieve Product Variant Details from SKU
Shopify Retrieve Product Variant Details from SKU
Shopify GraphQL Query
Shopify GraphQL Query
Shopify GraphQL Query
Shopify GraphQL Query
Shopify Order Add Tag
Shopify Order Add Tag
Ready to swap an old SKU for its replacement on every new order
Get setup in 7 minutes.
FAQs
Does the customer pay a different price?
Shopify recalculates the order with the replacement's price. If the prices differ, you can add a discount to the new line item in the order edit, or keep the two variants at the same price.
Can I replace more than one SKU?
Yes. Use a logic step in place of the filter to map each old SKU to its replacement, or keep a list of old and new SKUs in a sheet and look up each line item.
Will this change orders already fulfilled?
No. The filter skips fulfilled line items, and the workflow only runs on new orders.
Personalize this template
Customize this workflow even further:
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."
"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."
"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"
swap an old SKU for its replacement on every new order
7 min setup • Fully supported if you need help
