Liquid Variablen

Liquid ist eine Skriptsprache für Webseiten-Vorlagen.
Sie wird hier genutzt, um Inhalte dynamisch einzubauen – etwa Produktnamen, Preise oder Kundendaten.
Wenn du selbst E-Mail-Vorlagen oder Shop-Designs anpassen möchtest, findest du hier eine Liste der wichtigsten verwendeten Variablen.

Grundlegende Liquid-Syntax

{{ variable }}: Ausgabe des Inhalts einer Variable.
{% tag %}: Logik-Anweisung (Bedingungen, Schleifen).
{{ variable | filter }}: Transformation des Inhalts durch einen Filter.

Häufig verwendete Liquid Variablen

Objekt Beschreibung Beispiele
product Informationen zum Produkt product.title, product.description, product.price, product.compare_at_price, product.url, product.vendor, product.type, product.sku, product.available, product.images, product.featured_image, product.tags
cart Informationen zum aktuellen Warenkorb cart.total_price, cart.subtotal_price, cart.item_count, cart.items, cart.currency, cart.total_discount, cart.total_weight, cart.note
customer Informationen zum Kunden customer.first_name, customer.last_name, customer.email, customer.phone, customer.addresses
order Bestelldetails (z. B. in E-Mail-Benachrichtigungen oder Bestellseiten) order.name, order.number, order.created_at, order.total_price, order.subtotal_price, order.total_tax, order.currency, order.financial_status, order.fulfillment_status, order.line_items, order.shipping_address, order.billing_address
shop Allgemeine Shop-Informationen shop.name, shop.email, shop.phone, shop.address, shop.city, shop.country, shop.locale, shop.url, shop.description