All Collections
Discounting
Shopify Script Overviews
Adding Discount Script to Shopify script editor app
Adding Discount Script to Shopify script editor app

How to add scripts to the Shopify Script Editor

Christian Sokolowski avatar
Written by Christian Sokolowski
Updated over a week ago

To simplify the setup process, automatic scripts are available for certain Rebuy features such as Buy More Save More (BMSM) and the Tiered Progress Bar (TPB), which can be copied and pasted into your Shopify Plus script editor.

NOTE: Shopify Plus is required to make use of Shopify Scripts. As of February 13, 2023 Shopify announced that Shopify Scripts will be deprecated on August 28, 2025 and they will be moving to functions. They have since removed the Script Editor application from the Shopify app store.

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.


First things first is you will need to set up the features that use the scripts.


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.

REMINDER: Shopify Plus is required to make use of Shopify Scripts. As of February 13, 2023 Shopify announced that Shopify Scripts will be deprecated on August 28, 2025 and they will be moving to functions. They have since removed the Script Editor application from the Shopify app store. If you are on Plus and do not have Script Editor please reach out to Rebuy support for assistance.


If you have more questions, please reach out to support!

Did this answer your question?