script

In this article

  • script.name
  • script.id

script.name

Returns the script's name.

Input
{% if scripts.cart_calculate_line_items %}
  <p>Check out our sale: {{ scripts.cart_calculate_line_items.name }}</p>
{% endif %}
Output
Check out our sale: Buy one chambray shirt and get a second for half price

script.id

Returns the script's ID.

results matching ""

    No results matching ""