“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 discount
    on items, an order, or shipping.
  • Block a checkout
    and tell the buyer what to fix, like adding a missing gift message.
  • Build a bundle
    by combining cart items into a kit or splitting a bundle into its components.
  • Change delivery options
    by hiding, renaming, or reordering shipping choices.
  • Change payment methods
    by 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.