Loading...
Loading...
Guide for using the Liquid template language within Shopify Theme App Extensions and Themes. Use this skill when building App Embed Blocks, App Blocks, or modifying Shopify Themes.
npx skill4agent add toilahuongg/shopify-agents-kit shopify-liquid{{ ... }}{% ... %}{{ value | filter }}schema{% schema %}
{
"name": "Star Rating",
"target": "section",
"settings": [
{
"type": "color",
"id": "star_color",
"label": "Star Color",
"default": "#ff0000"
}
]
}
{% endschema %}block.settings.id<div style="color: {{ block.settings.star_color }}">
★★★★★
</div>{% schema %}
{
"name": "Chat Bubble",
"target": "body",
"javascript": "chat.js",
"settings": []
}
{% endschema %}product{{ product.title }}{{ product.variants.first.id }}{{ product.featured_image | image_url: width: 400 }}cart{{ cart.item_count }}{{ cart.currency.iso_code }}customer{% if customer %}shop{{ shop.name }}{{ shop.permanent_domain }}{{ product.price | money }}$10.00{{ 'style.css' | asset_url }}assets/{{ product | json }}<div id="my-app" data-product-id="{{ product.id }}" data-shop="{{ shop.permanent_domain }}"></div>
<script>
const app = document.getElementById('my-app');
const productId = app.dataset.productId;
</script><script>
window.ShopifyData = {
product: {{ product | json }},
cart: {{ cart | json }}
};
</script>liquidContent-Type: application/liquid