Skip to content

Getting started

Install NERD Functions, create your first discount or bundle from a template, test it against a real cart, and activate it. About ten minutes.

1. Install

Install NERD Functions from the Shopify App Store. The app asks for read access to products, customers, markets, metaobjects, and write access to discounts and cart transforms. Pick a plan; both plans have a free trial and development stores are free.

2. Create a function

Open Functions in the app and choose New. Pick a type:

  • Discount for anything that changes prices: volume breaks, thresholds, buy X get Y, fixed prices, metafield-driven offers.
  • Bundle (cart transform) for anything that changes cart lines: merging picks into one bundle line, or expanding a bundle product into components.

Start from a template when one matches. Templates prefill the rules, data access, and a tutorial with admin and storefront steps.

3. Write rules

A function holds up to ten rules. Each rule has conditions (what must be true) and an action (what to do). Conditions can look at line quantity, cart total, collections, tags, product and variant ids, metafields, line item properties, cart attributes, sales channel, and aggregates such as quantity per collection. See discount functions and bundle functions.

4. Test

Open the Test panel, pick real products from your store, set quantities and properties, and run. The panel shows what checkout would do: which rules matched, which lines were discounted or merged, and the resulting prices. Nothing is live yet.

5. Activate

Every function starts inactive. When the test output is right, activate it. The app writes the configuration onto a Shopify automatic discount or cart transform, and Shopify’s checkout runs it from then on. Deactivate at any time; the rules stay saved.

Next

Updated