For merchants who are still using legacy Shopify Scripts for Rebuy features such as Buy More Save More or the Tiered Progress Bar, this guide will provide an overview of how to add your Shopify Scripts to the Shopify Script Editor app. Rebuy does not support this feature any longer now that we have released our own discounting functionality in app.
NOTE: Shopify Scripts for discounting is only compatible with Shopify Plus and available to merchants who were previously granted access to the Script Editor app in Shopify Admin. Shopify has since removed the Script Editor app from the Shopify App Store for new merchants.
Because Shopify Scripts will be deprecated by Shopify in August 2025, it is highly recommended to migrate over to using Rebuy's discounting feature using Shopify Functions.
For more information on how to use Rebuy's integration with Shopify Functions for discounting, please refer to our Rebuy Discount Overview guide linked below.
Shopify Scripts is not a Rebuy product, and unfortunately, Rebuy Support is unable to create, modify, or customize Scripts to align with your specific needs.
We recommend using our guides as a helpful reference for any Script customizations you'd like to implement. If you encounter challenges with your custom scripts, we suggest reaching out to Shopify support for assistance. For additional details on our support scope, please consult our policy page. Your understanding is greatly appreciated.
Adding Discount Script to Shopify Script Editor
To access the Script editor app, log in to your Shopify Store and either navigate to it or install it first and then navigate to it. Once you are in the app, select "create script," choose "blank script," and then create the script as shown in the example below:
If you have an existing gift with purchase or discounting script. These scripts will need to be merged with it as there can only be one script running for discounts such as this at a time.
After creating your title, click on "code" and remove any existing code, as shown in the screenshot below. This is because the code you copied from the Rebuy Admin script builder already includes it.
After that, you will paste the code you copied from Rebuy Admin Smart Cart settings.
To complete the process, check for errors in your script within the script editor. If there are no errors, you can save and publish the script to production, which will replace any existing scripts and apply the new code.