--- title: 'Liquid objects: scripts' description: >- The active scripts, of each script type, on the store. > Caution: > Shopify Scripts will be sunset on August 28, 2025. Migrate your existing scripts to [Shopify Functions](/docs/api/functions) before this date. api_name: liquid source_url: html: 'https://shopify.dev/docs/api/liquid/objects/scripts' md: 'https://shopify.dev/docs/api/liquid/objects/scripts.md' --- # scripts The active scripts, of each script type, on the store. *** Caution Shopify Scripts will be sunset on August 28, 2025. Migrate your existing scripts to [Shopify Functions](https://shopify.dev/docs/api/functions) before this date. *** There can be only one active script of each type. Currently, the only type accessible in Liquid is `cart_calculate_line_items`. *** Tip To learn more about Shopify Scripts and the Script Editor, visit the [Shopify Help Center](https://help.shopify.com/manual/checkout-settings/script-editor). *** ## Properties * * cart\_calculate\_line\_items [script](https://shopify.dev/docs/api/liquid/objects/script) * The active line item script. If no line item script is currently active, then `nil` is returned. ExampleAdvertise the currently active line item script ```liquid {% if scripts.cart_calculate_line_items %}
Don't miss our current sale: {{ scripts.cart_calculate_line_items.name }}
{% endif %} ``` ##### Code ``` {% if scripts.cart_calculate_line_items %}Don't miss our current sale: {{ scripts.cart_calculate_line_items.name }}
{% endif %} ``` ##### Data ``` { "scripts": { "cart_calculate_line_items": { "name": "10% off Whole bloodroot" } } } ``` ## Output ```htmlDon't miss our current sale: 10% off Whole bloodroot
``` ```json { "cart_calculate_line_items": {} } ``` ##### Example ``` { "cart_calculate_line_items": {} } ```