Migrating from Shopify Scripts to Shopify Functions
Migrating from Shopify Scripts to Shopify Functions
Overview
Shopify Scripts have been fully deprecated: editing/publishing Scripts stopped on April 15, 2026, and all Shopify Scripts stopped executing on June 30, 2026. If any of your UpsellPlus discount automations still rely on Script Editor, they are no longer applying at checkout. Migrate to Shopify Functions now — 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. Remove Old Scripts
- In Shopify admin, go to Settings -> Apps and sales channels -> Script Editor
- Find each UpsellPlus Script
- Remove or deactivate it if still present
- This prevents any conflicts with your new Functions-based discounts
Testing Your Discounts
- Add the upsell product to your cart
- Proceed to checkout and verify the discount appears
- Calculate: expected discount matches actual discount
- Test with different products eligible for the offer
- Check Shopify admin Order -> Discounts to confirm
Troubleshooting
Issue | Solution |
|---|---|
Discount not appearing | Verify offer is active, Smart Rules are met, cache cleared, and the offer is set to use Shopify Functions (not Scripts) |
Wrong discount amount | Recheck discount settings match your documentation |
Discount stacking changed | Functions stack with codes and other Functions; test and adjust as needed |
Need Help?
- Email support@upsellplus.com with your store URL and issue
- Click ? in UpsellPlus for in-app help
Updated on: 01/09/2026
Thank you!