price.liquid
price.liquid 用於展示商品卡片裡面價格相關內容
variables
| Name | Type | Description |
|---|---|---|
| product | product | product object |
| price_class | String | 價格標籤 class name |
| price_sale_class | String | 原價 class name |
| price_cross_class | String | 折扣價 class name |
范例
{% assign price_class = 'Label-price' %}
{% assign price_sale_class = 'is-sale' %}
{% assign price_cross_class = 'Label-price-original' %}
{% assign product = product %}
{% include 'price.liquid' %}Updated about 7 hours ago
