Shopify Functions library
Find Shopify Functions for discounts, bundles, checkout rules, delivery options and payment methods. Open a recipe to see when it applies and what changes for the buyer.
Discounts 20 starters
Preorder launch offer
Give buyers 25% off up to two preorder items bought as a one-time purchase. Ready-to-ship items in the same Shopify cart keep their regular price.
Volume discount
Reward bulk purchases from one collection. When a buyer adds at least 12 eligible one-time items, each eligible unit costs $3 less.
Lowest-priced item
Give shoppers $5 off the cheapest item when their cart contains three or more units. A two-item cart keeps its regular price.
Member pricing
Give customers with your member tag 12% off one-time purchases. Subscription items keep their regular price.
Member or spend offer
Give 10% off when the buyer has the “member” tag or spends at least $75.
Collection sale
Run a sale on a particular collection without changing product prices. Eligible items receive 20% off when the buyer checks out.
Spend and save
Take $5 off each item in a collection you choose when the cart reaches $75.
One-time purchase offer
Give 10% off one-time purchases. Subscription items keep their regular price.
Buy one item, get another half price
Give shoppers 50% off one reward item when they also buy from your qualifying collection. Both the qualifying item and the one-time reward purchase must be in the cart.
Tiered order savings
Give 10% off orders from $60 and 20% from $100.
Free shipping with a code
Give free shipping on orders of $75 or more when the buyer enters SHIPFREE.
Every second item half price
For each pair of one-time items in your chosen collection, take 50% off one. The lowest-priced items get the discount.
First-order free shipping to Canada
Give a known customer free shipping on their first order to a chosen country. The sample uses Canada.
Mix three variants for 10% off
Give 10% off the order when it contains three different variants. Several units of the same variant count once.
Three items for $30
Let shoppers mix and match three eligible items for a fixed price. Two items keep their regular prices, and each complete group of three earns the offer.
20% off the compare-at price
Give a variant you choose 20% off its compare-at price. Keep its current price when that is already lower.
Welcome code for a first order
Take $10 off a known customer’s first order of $50 or more when they enter WELCOME10.
Free shipping for repeat customers
Cover shipping for a known buyer with at least five previous orders.
Discount subscription items in a mixed cart
Take 15% off subscription items at checkout. One-time items in the same cart keep their selling price.
In-store member discount
Offer members an in-store discount at the POS locations you choose. Online purchases from the same customer keep their regular price.
Cart and checkout validation 8 starters
Separate preorder items
Ask shoppers to order preorder and in-stock items separately. A mixed cart shows a checkout message, while a cart containing only one type can continue.
Limit items from a collection
Block checkout when the buyer adds more than five items from a collection you choose.
Limit gift items for retail buyers
Limit items tagged “gift” to two units. Buyers tagged “member” or “wholesale” are exempt.
Require a gift message for wrapped items
Stop checkout when a shopper requests gift wrapping but leaves the message blank. Let the order through once there is a note for the recipient.
Minimum spend for wholesale orders
Require a $100 cart subtotal for buyers tagged wholesale. Retail buyers can check out below the minimum.
Require a purchase order number
Require a purchase order number from wholesale buyers. Connect the rule to the cart attribute where your storefront collects it.
Require preorder acknowledgement
Block checkout for preorder items until the buyer acknowledges the wait. Match the key and value your storefront saves in the cart.
Minimum quantity for a collection
Require at least two units when a buyer orders from a collection you choose. Carts with no items from that collection remain eligible.
Bundles and cart transforms 5 starters
Two-item bundle
Sell a pair of products under one bundle variant. When the buyer adds it to the cart, Shopify expands it into one of each component you choose.
Multipack with two components
Expand a bundle into two units of one variant and one unit of another.
Combine items into a bundle
When a shopper adds two units of one variant and one unit of a second, group those items into a single bundle in the cart. Choose both components and the bundle variant.
Expand a case into individual units
Sell a case as one variant and expand each case into six units of the component variant you choose.
Combine wholesale units into cases
Combine six units of the same variant into a case for buyers tagged wholesale. Retail buyers keep the individual units.
Delivery options 6 starters
Hide express for mixed preorders
Hide your express delivery option when the cart mixes preorder and regular items. Enter its checkout name.
Prioritize pickup for members
Put your pickup option first for buyers tagged “member”. Enter the option name shown at checkout.
Pickup first for personalized items
Hide express delivery and put pickup first for items marked as personalized. Set the product metafield and delivery option names for your shop.
Label international standard shipping
Rename your standard delivery option for a chosen destination to show an international service label. The sample destination is Canada.
Show express first for priority customers
Move an existing express delivery option to the top for buyers tagged priority.
Hide express for bulk orders
Remove an existing express option when an order contains at least 24 units. Other delivery choices keep their order.
Payment methods 6 starters
Hide cash on delivery for large orders
Remove cash on delivery (COD) from checkout when the cart reaches $75. Smaller orders can still use that payment method when your shop offers it.
Rename bank deposit
Show buyers a familiar name for a bank deposit option at checkout, such as “Pay by bank transfer.” Choose the name of an existing payment method in your shop.
Wholesale bank transfer
Make bank transfer easy for wholesale customers to find. When a buyer has the wholesale tag, rename that payment method and move it to the top of the list.
Reserve invoice payment for wholesale buyers
Hide an existing invoice payment method from buyers without the wholesale tag. Choose the exact name of your manual method.
Hide cash on delivery for preorders
Hide cash on delivery whenever an order includes a preorder item, including carts containing only preorders.
Limit cash on delivery by destination
Hide cash on delivery when the known shipping destination is outside your chosen country. The sample permits Canada.