Liquid How-To Global Tags
The GlobalDrop makes its tags and collections available on every page within StoreConnect.
Using GlobalDrop Tags
The following tags are set on every page within StoreConnect. These tags either return a drop of the appropriate type, or nothing, so you can use them in liquid if
statements in a straight forward manner, for example:
{% if customer %}
<p>Hi {{ customer.firstname }}!</p>
{% endif %}
The following global tags are available:
store
cart
login
customer
account
membership
navigation
current_page
current_product
current_product_category
current_article_category
Dynamic URLs
If you have multiple stores that each make use of the same code, you can use liquid for your domain name in URL links. This will create the URL link dynamically, based on the domain of the store the code is being used in:
href=“{{ current_store.domain }}“
href=“{{ current_store.domain }}/slug”
Using the GlobalDrop Finders
The following finders are available on all StoreConnect pages. They either return a the product or nothing which means you can use liquid if
statements easily, for example:
{% assign product = all_products["my_featured_product"] %}
{% if product %}
<p>Was {{ product.formatted_original_price }}, now {{ product.formatted_sale_price }}</p>
{% endif %}
The following global finders are available:
all_products
all_product_categories
all_pages
all_articles
all_content_blocks
all_media
Back to Documentation