Discounts: Shopify Functions and Shopify Scripts
Overview
UpsellPlus provides two methods for applying discounts to upsell offers: Shopify Functions and Shopify Scripts. Understanding the differences between these methods will help you choose the best approach for your store.
Functions
Shopify recently released Shopify Functions for Shopify Plus brands. One ability of Functions is to run automated product discount codes.
All you have to do is specify the discount amount (percentage or fixed) you want to apply to the upsell and UpsellPlus will do the rest automatically

Scripts
Shopify Scripts will continue to work on checkouts that are customized with checkout.liquid and on checkouts that have been upgraded to checkout extensibility until August 28, 2025. Shopify Scripts and Shopify Functions can be used at the same time in a single store. If your scripts can't currently be replaced by using Shopify Functions, then continue to use Shopify Scripts until the Shopify Functions APIs meet your needs.
In order to discount using Script Editor, follow the instructions from this article How do I apply a discount to a checkout upsell?
You can easily switch between the experiences with the 'Switch to Functions/Scripts' link.
Updated on: 13/02/2025
Thank you!