Articles on: Discounts

Migrating from Shopify Scripts to Shopify Functions

Migrating from Shopify Scripts to Shopify Functions


Overview


Shopify Scripts sunset August 28, 2025. Migrate your UpsellPlus discount automations from Scripts to Shopify Functions before this deadline. Functions are modern, require no coding, and work directly within UpsellPlus.


What You Need to Know


Shopify Functions replace Scripts with:

  • No custom code required--configure entirely in UpsellPlus
  • Better performance and reliability
  • Native checkout integration
  • Support for shipping discounts (Scripts limited)
  • Future updates and improvements


Migration Steps


1. Find Scripts-Based Offers

  • Go to UpsellPlus -> Offers
  • Click Edit on each offer
  • Check Discount Settings for "Shopify Scripts" indication


2. Document Current Settings

  • Note discount type (percentage, fixed amount, BOGO)
  • Record discount value
  • Note scope (cart, product, or collection)
  • Any conditional Smart Rules


3. Switch to Functions

  • Click Edit on the offer
  • In Discount Settings, select "Use Shopify Functions"
  • Re-enter discount type, value, and scope
  • Configure any Smart Rules
  • Click Save


UpsellPlus automatically creates and registers the Function with your store.


4. Deactivate Old Scripts

  • In Shopify admin, go to Settings -> Apps and sales channels -> Script Editor
  • Find each UpsellPlus Script
  • Click Deactivate to remove it
  • This prevents double-discounting


Testing Your Discounts


  1. Add the upsell product to your cart
  2. Proceed to checkout and verify the discount appears
  3. Calculate: expected discount matches actual discount
  4. Test with different products eligible for the offer
  5. Check Shopify admin Order -> Discounts to confirm


Troubleshooting


Issue

Solution

Double-discounting

Deactivate old Scripts in Script Editor

Discount not appearing

Verify offer is active, Smart Rules are met, cache cleared

Wrong discount amount

Recheck discount settings match your documentation

Discount stacking changed

Functions stack with codes and other Functions; test and adjust as needed


Timeline


  • Now--March 2025: Identify and test migration in staging
  • April--July 2025: Migrate all production offers, deactivate Scripts
  • Before August 28: Confirm all Functions active and Scripts disabled


Don't wait--migrate early to avoid last-minute issues.


Need Help?


Updated on: 11/02/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!