Shopify's Script Editor allows you to create Ruby scripts that can change the prices and properties of line items in your store's cart. Using scripts, you can create discounts that will be applied automatically based on the items and properties of a cart. The Script Editor app adds a place to write and store scripts in your Shopify admin.
You can write scripts using the Shopify scripts API documentation.
You can use Shopify Scripts with the following official Shopify themes:
Any theme can be updated to support Shopify Scripts, and the most recent release of the Timber framework supports them.
Several new Liquid objects and attributes are available to scripts.
In this section
|Creating and using scripts in Script Editor||Creating and using scripts in your Shopify store.|
|Example scripts||Some examples of scripts that can be created with the Script Editor app.|
|Script limitations||Scripts can't do everything. Here are some things you might need to consider when building scripts for your store.|
|Liquid objects for scripts||Scripts exposes a number of new objects in Liquid.|
|Updating your Liquid templates for Scripts||An example of how to modify your Liquid template files to take advantage of new features of Scripts.|