Global variables
Variable | Description | Example of use |
---|---|---|
{$shop.name} | Store name | {$shop.name} |
{$shop.email} | Store e-mail address | {$shop.email} |
{$shop.logo} | Path to store logo | <img src="{$shop.logo}" alt="{$shop.name}"> |
{$shop.phone} | Store phone number | {$shop.phone} |
{$shop.address.formatted} | Formatted store address | {$shop.address.formatted nofilter}. |
{$shop.address.address1} | First line of the store address | {$shop.address.address1} |
{$shop.address.address2} | Second line of the store address | {$shop.address.address2} |
{$shop.address.postcode} | Store zip code | {$shop.address.postcode} |
{$shop.address.city} | City of the store | {$shop.address.city} |
{$shop.address.country} | Country of the store | {$shop.address.country} |
{$shop.fax} | Store fax number | {$shop.fax} |
{$shop.url} | Store URL | {$shop.url} |
{$currency.iso_code} | ISO currency code | {$currency.iso_code} |
{$currency.sign} | Currency symbol | {$currency.sign} |
{$currency.name} | Currency name | {$currency.name} |
{$currency.iso_code_num} | Numeric ISO code of the currency | {$currency.iso_code_num} |
{$currency.conversion_rate} | Currency exchange rate | {$currency.conversion_rate} |
{$language.iso_code} | ISO language code | {$language.iso_code} |
{$language.name} | Language name | {$language.name} |
{$language.locale} | Regional language settings | {$language.locale} |
{$language.language_code} | Language code | {$language.language_code} |
{$language.is_rtl} | Is the language written from right to left | {if $language.is_rtl}RTL{else}LTR{/if}. |
{$page.title} | Title of current page | {$page.title} |
{$page.page_name} | Name of current site | {$page.page_name} |
{$page.meta} | Page metadata | {$page.meta.description} |
{$page.meta.keywords} | Keywords of the website | {$page.meta.keywords} |
{$page.meta.title}. | Page meta title | {$page.meta.title}. |
{$urls.base_url} | Basic store URL | {$urls.base_url} |
{$urls.current_url} | Current URL | {$urls.current_url} |
{$urls.shop_domain_url} | Store domain URL | {$urls.shop_domain_url} |
{$urls.img_ps_url} | URL of the image directory | {$urls.img_ps_url} |
{$urls.img_cat_url} | URL of category image directory | {$urls.img_cat_url} |
{$urls.img_lang_url} | URL of language image directory | {$urls.img_lang_url} |
{$urls.img_prod_url} | URL of product image catalog | {$urls.img_prod_url} |
{$urls.img_manu_url} | URL of the catalog of images of manufacturers | {$urls.img_manu_url} |
{$urls.img_sup_url} | URL of supplier image directory | {$urls.img_sup_url} |
{$urls.img_ship_url} | URL of the carriers' image directory | {$urls.img_ship_url} |
{$urls.img_store_url} | URL of the directory of store images | {$urls.img_store_url} |
{$urls.img_url} | URL of the theme's image directory | {$urls.img_url} |
{$urls.css_url} | CSS directory URL | {$urls.css_url} |
{$urls.js_url} | JavaScript directory URL | {$urls.js_url} |
{$urls.pic_url} | URL of the directory of images uploaded | {$urls.pic_url} |
{$static_token} | Token to secure forms | {$static_token} |
{$layout} | Page layout information | {$layout} |
{$layout.layout} | Current page layout | {$layout.layout} |
Customer variables
Variable | Description | Example of use |
---|---|---|
{$customer.firstname} | Customer name | {$customer.firstname} |
{$customer.lastname} | Customer name | {$customer.lastname} |
{$customer.email} | Customer email address | {$customer.email} |
{$customer.id} | Customer ID | {$customer.id} |
{$customer.gender.name} | Gender of the customer | {$customer.gender.name} |
{$customer.birthday} | Customer's date of birth | {$customer.birthday} |
{$customer.newsletter}. | Did the customer sign up for the newsletter | {if $customer.newsletter}Yes{else}No{/if}. |
{$customer.newsletter_date_add} | Date of signing up for the newsletter | {$customer.newsletter_date_add} |
{$customer.ip_registration_newsletter}. | IP used when signing up for newsletter | {$customer.ip_registration_newsletter}. |
{$customer.optin} | Has the customer consented to the processing of data | {if $customer.optin}Yes{else}No{/if}. |
{$customer.date_add} | Date of customer registration | {$customer.date_add|date_format:'%d/%m/%Y'}. |
{$customer.is_logged} | Is the client logged in | {if $customer.is_logged} Hello, {$customer.firstname}!{/if}. |
{$customer.addresses} | Customer addresses | {foreach $customer.addresses as $address}{$address.city}{/foreach} |
{$customer.groups} | Customer groups | {foreach $customer.groups as $group}{$group.name}{/foreach} |
{$customer.outstanding_allow_amount} | Allowed amount of debt | {$customer.outstanding_allow_amount} |
{$customer.last_passwd_gen} | Date of last password generation | {$customer.last_passwd_gen|date_format:'%d/%m/%Y'}. |
{$customer.secure_key} | Customer security key | {$customer.secure_key} |
Product variables
Variable | Description | Example of use |
---|---|---|
{$product.id_product} | Product ID | {$product.id_product} |
{$product.name} | Product name | {$product.name} |
{$product.description} | Full product description | {$product.description nofilter} |
{$product.description_short} | Brief product description | {$product.description_short nofilter} |
{$product.price} | Product price (formatted) | {$product.price} |
{$product.price_amount} | Product price (value) | {$product.price_amount} |
{$product.price_tax_exc} | Net price of the product | {$product.price_tax_exc} |
{$product.regular_price} | Regular price (before promotion) | {$product.regular_price} |
{$product.has_discount} | Does the product have a promotion | {Promotion} {if $product.has_discount}. |
{$product.discount_type} | Promotion type (percentage/amount) | {$product.discount_type} |
{$product.discount_percentage} | Promotion percentage | {$product.discount_percentage} |
{$product.discount_percentage_absolute} | Promotion percentage (without the - sign) | {$product.discount_percentage_absolute} |
{$product.discount_amount} | The amount value of the promotion | {$product.discount_amount} |
{$product.images} | Product image board | {foreach from=$product.images item=image}{$image.large.url}{/foreach} |
{$product.cover} | Main product image | <img src="{$product.cover.large.url}" alt="{$product.name}"> |
{$product.reference} | Product reference number | {$product.reference} |
{$product.supplier_reference} | Supplier reference number | {$product.supplier_reference} |
{$product.manufacturer_name} | Manufacturer name | {$product.manufacturer_name} |
{$product.ean13} | EAN-13 code | {$product.ean13} |
{$product.isbn} | ISBN number | {$product.isbn} |
{$product.upc} | UPC code | {$product.upc} |
{$product.mpn} | MPN Number | {$product.mpn} |
{$product.features} | Product features | {foreach from=$product.features item=feature}{$feature.name}: {$feature.value}{/foreach} |
{$product.attachments} | Product attachments | {foreach from=$product.attachments item=attachment}{$attachment.name}{/foreach} |
{$product.quantity} | Quantity of product available | {$product.quantity} |
{$product.minimal_quantity} | Minimum order quantity | {$product.minimal_quantity} |
{$product.availability} | Product availability | {$product.availability} |
{$product.availability_date} | Product availability date | {$product.availability_date} |
{$product.add_to_cart_url} | URL to add to cart | <a href="/en/{$product.add_to_cart_url}/">Add to cart</a> |
{$product.url} | Product URL | <a href="/en/{$product.url}/">View product</a> |
{$product.condition} | Product condition (new, used, refurbished) | {$product.condition} |
{$product.delivery_in_stock} | Delivery time for in-stock products | {$product.delivery_in_stock} |
{$product.delivery_out_stock} | Delivery time for out-of-stock products | {$product.delivery_out_stock} |
{$product.unit_price} | Unit price | {$product.unit_price} |
{$product.unit_price_full} | Full unit price (with unit) | {$product.unit_price_full} |
{$product.weight} | Product weight | {$product.weight} |
{$product.weight_unit} | Weight unit | {$product.weight_unit} |
{$product.categories} | Product categories | {foreach from=$product.categories item=category}{$category.name}{/foreach} |
{$product.customizations} | Product personalization options | {foreach from=$product.customizations.fields item=field}{$field.name}{/foreach} |
{$product.ecotax} | Product environmental tax | {$product.ecotax.value} |
{$product.flags} | Product flags (new, sale, pack) | {foreach from=$product.flags item=flag}{$flag.type}{/foreach} |
{$product.main_variants} | Main product variants | {foreach from=$product.main_variants item=variant}{$variant.name}{/foreach} |
{$product.attributes} | Product attributes | {foreach from=$product.attributes key=attribute_name item=attribute_value}{$attribute_name}: {$attribute_value}{/foreach} |
{$product.rate_tax} | Product VAT rate | {$product.rate_tax} |
{$product.specific_prices} | Details of special product pricing | {$product.specific_prices.reduction} |
Category variables
Variable | Description | Example of use |
---|---|---|
{$category.id} | Category ID | {$category.id} |
{$category.id_parent} | Parent category ID | {$category.id_parent} |
{$category.name} | Category name | {$category.name} |
{$category.description} | Category description | {$category.description nofilter} |
{$category.meta_title} | Meta category title | {$category.meta_title} |
{$category.meta_keywords} | Category meta keywords | {$category.meta_keywords} |
{$category.meta_description} | Meta category description | {$category.meta_description} |
{$category.image} | Category image | <img src="{$category.image.large.url}" alt="{$category.name}"> |
{$category.url} | Category URL | <a href="/en/{$category.url}/">{$category.name}</a> |
{$category.subcategories} | Subcategories | {foreach from=$category.subcategories item=subcategory}{$subcategory.name}{/foreach} |
{$category.active} | Is the category active | {if $category.active}Active{else}Inactive{/if} |
{$category.date_add} | Date the category was added | {$category.date_add|date_format:'%d/%m/%Y'}. |
{$category.date_upd} | Category update date | {$category.date_upd|date_format:'%d/%m/%Y'}. |
{$category.level_depth} | Nesting level of categories | {$category.level_depth} |
{$category.nb_products} | Number of products in the category | {$category.nb_products} |
{$category.groups} | Customer groups with access to categories | {foreach from=$category.groups item=group}{$group.name}{/foreach} |
Basket variables
Variable | Description | Example of use |
---|---|---|
{$cart.products} | Products in the shopping cart | {foreach from=$cart.products item=product}{$product.name}{/foreach} |
{$cart.totals.total.value}. | Total value of the basket | {$cart.totals.total.value}. |
{$cart.totals.total.label}. | Total value label | {$cart.totals.total.label}. |
{$cart.totals.total_including_tax.value} | Total value including tax | {$cart.totals.total_including_tax.value} |
{$cart.totals.total_excluding_tax.value} | Total value excluding tax | {$cart.totals.total_excluding_tax.value} |
{$cart.subtotals.products.value}. | Value of products | {$cart.subtotals.products.value}. |
{$cart.subtotals.shipping.value}. | Shipping cost | {$cart.subtotals.shipping.value}. |
{$cart.subtotals.tax.value}. | Tax value | {$cart.subtotals.tax.value}. |
{$cart.subtotals.discounts.value}. | Value of discounts | {$cart.subtotals.discounts.value}. |
{$cart.products_count} | Number of products in the basket | {$cart.products_count} |
{$cart.summary_string} | Basket summary (number of products) | {$cart.summary_string} |
{$cart.vouchers} | Coupons used | {foreach from=$cart.vouchers item=voucher}{$voucher.name}{/foreach} |
{$cart.vouchers.allowed} | Are coupons allowed | {$cart.vouchers.allowed} |
{$cart.labels.tax_short} | Short tax label | {$cart.labels.tax_short} |
{$cart.labels.tax_long} | Full tax label | {$cart.labels.tax_long} |
{$cart.url} | Cart URL | <a href="/en/{$cart.url}/">Go to basket</a> |
{$cart.minimalPurchase} | Minimum purchase value | {$cart.minimalPurchase} |
{$cart.minimalPurchaseRequired} | Message about the minimum purchase value | {$cart.minimalPurchaseRequired} |
Variable orders
Variable | Description | Example of use |
---|---|---|
{$order.id} | Order ID | {$order.id} |
{$order.reference} | Order reference number | {$order.reference} |
{$order.order_date} | Order date | {$order.order_date} |
{$order.details.id} | Order Detail ID | {$order.details.id} |
{$order.details.reference} | Order details reference number | {$order.details.reference} |
{$order.details.tax_name} | Tax name | {$order.details.tax_name} |
{$order.details.payment} | Payment method | {$order.details.payment} |
{$order.details.invoice} | Invoice information | {$order.details.invoice} |
{$order.details.gift_message} | Gift Message | {$order.details.gift_message} |
{$order.details.total_paid} | Total amount paid | {$order.details.total_paid} |
{$order.details.total_products} | Total value of products | {$order.details.total_products} |
{$order.details.total_products_wt} | Total value of products with tax | {$order.details.total_products_wt} |
{$order.details.total_shipping} | Total shipping cost | {$order.details.total_shipping} |
{$order.details.total_discounts}. | Total value of discounts | {$order.details.total_discounts}. |
{$order.details.total_wrapping} | Total cost of gift wrapping | {$order.details.total_wrapping} |
{$order.details.currency} | Currency of the order | {$order.details.currency.name} |
{$order.products} | Products in the order | {foreach from=$order.products item=product}{$product.name}{/foreach} |
{$order.shipping} | Shipping information | {$order.shipping.name} |
{$order.addresses.delivery} | Delivery address | {$order.addresses.delivery.formatted nofilter}. |
{$order.addresses.invoice} | Invoice address | {$order.addresses.invoice.formatted nofilter} |
{$order.follow_up} | Order tracking URL | {$order.follow_up} |
{$order.is_returnable} | Can the order be returned | {if $order.is_returnable}Yes{else}No{/if}. |
{$order.history} | Order history | {foreach from=$order.history item=state}{$state.name}{/foreach} |
{$order.carrier} | Carrier | {$order.carrier.name} |
{$order.labels} | Order labels | {$order.labels.tax_short} |
Address variables
Variable | Description | Example of use |
---|---|---|
{$address.id} | Address ID | {$address.id} |
{$address.alias} | Address alias | {$address.alias} |
{$address.firstname} | Name | {$address.firstname} |
{$address.lastname}. | Name | {$address.lastname}. |
{$address.company} | Company name | {$address.company} |
{$address.address1} | The first line of the address | {$address.address1} |
{$address.address2} | The second line of the address | {$address.address2} |
{$address.postcode} | Zip code | {$address.postcode} |
{$address.city} | City | {$address.city} |
{$address.state} | State/village | {$address.state} |
{$address.country} | Country | {$address.country} |
{$address.formatted} | Formatted address | {$address.formatted nofilter} |
{$address.phone} | Phone number | {$address.phone} |
{$address.phone_mobile} | Cell phone number | {$address.phone_mobile} |
{$address.vat_number} | VAT number | {$address.vat_number} |
{$address.days} | Identification number (DNI) | {$address.days} |
{$address.other} | Other information | {$address.other} |