Каналы продаж
Возможности
Компания
Объекты шаблонизатора liquid содержат атрибуты для отображения динамического контента страницы. К примеру, объект product содержит атрибут title, который может использоваться для вывода названия товара.
Liquid-объекты часто называют Liquid переменными.
Чтобы вывести атрибут объекта на странице, окружите его символами {{ и }}, как показано ниже:
{{ product.title }} //Выведет, например: "Туфли Prada"
Следующие объекты могут быть использованы из любого шаблона в теме и называются глобальными объектами или глобальными переменными:
blogs<ul>
{% for article in blogs.myblog.articles %}
<li>{{ article.title | link_to: article.url }}</li>
{% endfor %}
</ul>
blocks{{blocks.header-info.content | editable }}block_lists{% if block_lists.news.blocks.size > 0 %}
{% for block in block_lists.news.blocks %}
<div class="sidebar_block">
<div class="sidebar_block-title">{{ block.title }}</div>
<div class="sidebar_block-content editor">
{{ block.content | editable }}
</div>
</div>
{% endfor %}
{% endif %}cartcollections{% for product in collections.frontpage.products %}
{{ product.title | editable }}
{% endfor %}
current_page{% if current_page != 1 %} Страница {{ current_page }}{% endif %}client{% if client %}
<a href="/client_account/orders">Мой кабинет</a> |
<a href="/client_account/exit">Выйти</a>
{% else %}
<a href="/client_account/login">Войти</a> |
<a href="/client_account/contacts/new">Зарегистрироваться</a>
{% endif %}client_group{% if client_group.title == 'Оптовики' %}
Минимальная сумма заказа - 15 000 руб.
{% endif %}linklists<ul>
{% for link in linklists.categories.links %}
<li>{{ link.title | link_to: link.url }}</li>
{% endfor %}
</ul>
title<title>{{ title }}</title>description{% if description != title %}
<meta name="description" content="{{ description }}" />
{% endif %}keywords{% if keywords != title %}
<meta name="keywords" content="{{ keywords }}" />
{% endif %}account<a href="callto:{{account.phone}}">{{account.phone | editable}}</a>template{% if template contains 'product' %}
Мы находимся на странице товара.
{% endif %}settings{% if settings.use_logo %}
<img src="{{ 'logo.png' | asset_url }}"/>
{% else %}
<span class="no-logo">{{ account.title | editable }}</span>
{% endif %}
{% if settings.featured_collection and settings.featured_collection != ''
and collections[settings.featured_collection].products_count > 0 %}
{% for product in collections[settings.featured_collection].products %}
{% include 'product_preview' %}
{% endfor %}
{% endif %}cart_url<a href="{{cart_url}}">Корзина</a>search_url<form action="{{ search_url }}" method="get">
<input type="text" name="q" value="{{search.query | escape}}"
id="left_search_field" />
<input type="submit" value="Поиск" id="left_search_button" />
</form>order{% if order %}
//Чтобы сохранить уже выбранную клиентом сортировку при применении фильтра
<input type="hidden" name="order" value="{{ order }}">
{% endif %}page_size{% if page_size %} // Чтобы сохранить уже выбранное количество товаров на странице
при применении фильтра
<input type="hidden" name="page_size" value="{{ page_size }}">
{% endif %}money_with_currency_format$('#price-field')
.html(InSales.formatMoney(variant.price, "{{money_with_currency_format}}"));language{% for language in languages %}
<a href="{{ language.switch_url }}">
<img src="{{ language.icon_url }}" alt="{{ language.title }}"
title="{{ language.title }}">
</a>
{% endfor %}search{% if search.query != '' %}
<input type="hidden" name="q" value="{{ search.query }}" />
{% endif %}