We're constantly trying to improve your support experience, and your feedback is extremely valuable to us.

Please take a moment to tell us about your experience today.
Sign up for future Help Center user research studies.

The script object

script objects contain information about the Shopify Scripts published in your store.

Find scripts by type using the global scripts object. It's good practice to check whether a script type exists before referencing its properties with Liquid.

To learn more about Shopify Scripts, visit the help content for Shopify Scripts and the Script Editor .

The script object has the following attributes:


Returns the script's ID.


Returns the script's name.


{% if scripts.cart_calculate_line_items %}
  <p>Check out our sale: {{ scripts.cart_calculate_line_items.name }}</p>
{% endif %}


Check out our sale: Buy one chambray shirt and get a second for half price

Ready to start selling with Shopify?

Try it free