“Can Mechanic do this before the order is placed?” We’ve heard that question for years. Now you can use Shopify Functions in Mechanic to change what happens in the cart and at checkout.
- Give a discounton items, an order, or shipping.
- Block a checkoutand tell the buyer what to fix, like adding a missing gift message.
- Build a bundleby combining cart items into a kit or splitting a bundle into its components.
- Change delivery optionsby hiding, renaming, or reordering shipping choices.
- Change payment methodsby hiding, renaming, or reordering payment options.
Offer any three eligible items for $30, or reserve “Pay by invoice” for approved wholesale customers. For wholesale, you can use a Form to collect applications, a Task to tag customers you approve, and a Function to show them the invoice option at checkout.
Open
Functions
in Mechanic to build a rule from scratch or customize a starter. Try it with a test cart before you publish. The public task library now has tabs for Tasks, Forms, and Functions. Browse all 45 Function starters.Prefer working in code? Mechanic CLI 0.2.0 lets you pull Function drafts as JSON, edit them locally, test them against saved carts, and save them back to your shop. See the CLI commands.