Articles on: Discounts

Discounts: Shopify Functions and Shopify Scripts

UpsellPlus offers two types and you can choose which one to use: Functions or Scripts.

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

Shopify Functions Discount

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: 04/12/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!