VOOZH about

URL: https://shopify.dev/docs/api/liquid/objects/scripts

⇱ Liquid objects: scripts


Skip to main content

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 before this date.

Caution:

Shopify Scripts will be sunset on August 28, 2025. Migrate your existing scripts to Shopify Functions before this date.

Caution: Shopify Scripts will be sunset on August 28, 2025. Migrate your existing scripts to <a href="/docs/api/functions">Shopify Functions</a> 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.

Tip:

To learn more about Shopify Scripts and the Script Editor, visit the Shopify Help Center.

Tip: To learn more about Shopify Scripts and the Script Editor, visit the <a href="https://help.shopify.com/manual/checkout-settings/script-editor">Shopify Help Center</a>.


Properties

Anchor to
cart_calculate_line_itemscart_calculate_line_items

The active line item script.

If no line item script is currently active, then nil is returned.

{
"cart_calculate_line_items": {}
}
Example
{
 "cart_calculate_line_items": {}
}
Was this section helpful?