Scripts ran in a sandbox on Shopify's servers and could be edited in the admin.
Legacy Shopify Scripts stopped running on 30 June 2026, so this is a completed deprecation rather than an upcoming one.
Functions are compiled WebAssembly deployed through an app, which means version control and a deployment step where Scripts had neither.
The migration is rarely a translation — Functions have a different execution model, and logic that worked in a Script often needs restructuring rather than porting.
Shipping and payment customisations migrate to their own Function APIs, not to the discount one, and are commonly forgotten.
Legacy Shopify Scripts stopped running on 30 June 2026.
The full guide has the formats, the deadlines and the worked examples.