Campaign settings

Discounts

Shopify Functions

Summer Upsell discounts are real Shopify discounts, generated through Shopify Functions. They appear in your Shopify admin under Discounts, work in checkout, and flow through to receipts and reports natively.

Where you enable a discount

Every widget's Offer tab has an Enable discount toggle. When you turn it on, three fields appear:

Field Description
Display Title Label shown next to the discounted price on the storefront card (e.g. Bundle save).
Discount Type Percentage (%) or Fixed Amount ($).
Value The percentage or money amount.
When to apply? Always (on selected products) — discount applies whenever the upsell product ends up in the cart. Only when trigger product is in cart — discount only applies if the trigger product is also in the cart at checkout. Prevents customers from gaming the offer by adding only the upsell item.

Why Shopify Functions

  • Discounts apply at checkout, not as a post-hoc edit — receipts, taxes, and reports stay accurate.
  • No discount codes are exposed publicly — no risk of code leaks or abuse.
  • Compatible with Shopify's combine with other discounts rules.

The discount-function extension

Summer Upsell ships a dedicated Shopify Functions extension (discount-function) that targets two Shopify checkout entry points:

Field Description
cart.lines.discounts.generate.run Per-line item discounts on the trigger / upsell SKUs (percentage or fixed).
cart.delivery-options.discounts.generate.run Optional shipping-rate adjustments tied to bundle conditions.

The generated discount records are visible in the merchant's Shopify admin under Discounts.

Permissions

The app needs read_discounts and write_discounts scopes. These are granted on install.