Passar para o conteúdo principal
Todas as coleçõesDesenvolvedores
Guia de referência de variáveis Liquid
Guia de referência de variáveis Liquid
Lui Serafim avatar
Escrito por Lui Serafim
Atualizado há mais de uma semana

Variáveis disponíveis

As seguintes variáveis podem ser usadas ao interagir com pedidos e modelos de email.

{{ attributes.Checkout-Method }}
{{ attributes.Pickup-Location-Company }}
{{ attributes.Pickup-Location-Phone }}
{{ attributes.Pickup-Location-Address-Line-1 }}
{{ attributes.Pickup-Location-Address-Line-2 }}
{{ attributes.Pickup-Location-City }}
{{ attributes.Pickup-Location-Id }}
{{ attributes.Pickup-Location-Region }}
{{ attributes.Pickup-Location-Postal-Code }}
{{ attributes.Pickup-Location-Country }}
{{ attributes.Pickup-Date }}
{{ attributes.Pickup-Time }}
{{ attributes.Delivery-Date }}
{{ attributes.Delivery-Time }}
{{ attributes.Delivery-Note }}
{{ attributes.Delivery-Day }}
{{ attributes.Delivery-Location-Id }}
{{ attributes.Custom-Attribute-1 }}
{{ attributes.Custom-Attribute-2 }}
{{ attributes.Custom-Attribute-3 }}
{{ attributes.Shipping-Date }}

Diferenciar entre recolha, entrega e envio

Se você deseja exibir conteúdos diferentes com base no método de checkout, use a variável attributes.Checkout-Method.

{% if attributes.Checkout-Method == "pickup" %}
This is a pickup order
{% endif %}
{% if attributes.Checkout-Method == "delivery" %}
This is a delivery order.
{% endif %}
{% if attributes.Checkout-Method == "shipping" %}
This is a shipping order
{% endif %}
Respondeu à sua pergunta?