xt:Commerce Veyton Mailtemplate Variablen
Will man die Mailtemplates von xt:Commerce ändern gestaltet sich dieses durch den Mail-Manager angenehm einfach, besonders wenn man die Variablen kennt, die an die Templates übergeben werden.
Die vollständige Liste für Version 4.0.14:
Die Variablen im “update_order-admin”-Mail Template:
Die Mail wird verschickt, wenn der Order-Status geändert wird. (Sofern der Shop so konfiguriert ist)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | {$order_data.orders_id} {$order_data.customers_id} {$order_data.customers_cid} {$order_data.customers_vat_id} {$order_data.customers_status} {$order_data.customers_email_address} {$order_data.delivery_gender} {$order_data.delivery_phone} {$order_data.delivery_fax} {$order_data.delivery_firstname} {$order_data.delivery_lastname} {$order_data.delivery_company} {$order_data.delivery_company_2} {$order_data.delivery_company_3} {$order_data.delivery_street_address} {$order_data.delivery_suburb} {$order_data.delivery_city} {$order_data.delivery_postcode} {$order_data.delivery_zone} {$order_data.delivery_zone_code} {$order_data.delivery_country} {$order_data.delivery_country_code} {$order_data.delivery_address_book_id} {$order_data.billing_gender} {$order_data.billing_phone} {$order_data.billing_fax} {$order_data.billing_firstname} {$order_data.billing_lastname} {$order_data.billing_company} {$order_data.billing_company_2} {$order_data.billing_company_3} {$order_data.billing_street_address} {$order_data.billing_suburb} {$order_data.billing_city} {$order_data.billing_postcode} {$order_data.billing_zone} {$order_data.billing_zone_code} {$order_data.billing_country} {$order_data.billing_country_code} {$order_data.billing_address_book_id} {$order_data.payment_code} {$order_data.subpayment_code} {$order_data.shipping_code} {$order_data.currency_code} {$order_data.currency_value} {$order_data.language_code} {$order_data.comments} {$order_data.last_modified} {$order_data.date_purchased} {$order_data.orders_status} {$order_data.orders_date_finished} {$order_data.account_type} {$order_data.allow_tax} {$order_data.customers_ip} {$order_data.shop_id} {$order_data.orders_data} {$order_data.campaign_id} {$order_data.orders_exported} {$order_data.orders_status_id} {$order_data.date_purchased_plain} {$order_data.payment_name} |
Die Variablen im “send_order”-Mail Template:
Dieses ist die Bestellbestätigungsmail.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | {$order_data.orders_id} {$order_data.customers_id} {$order_data.customers_cid} {$order_data.customers_vat_id} {$order_data.customers_status} {$order_data.customers_email_address} {$order_data.delivery_gender} {$order_data.delivery_phone} {$order_data.delivery_fax} {$order_data.delivery_firstname} {$order_data.delivery_lastname} {$order_data.delivery_company} {$order_data.delivery_company_2} {$order_data.delivery_company_3} {$order_data.delivery_street_address} {$order_data.delivery_suburb} {$order_data.delivery_city} {$order_data.delivery_postcode} {$order_data.delivery_zone} {$order_data.delivery_zone_code} {$order_data.delivery_country} {$order_data.delivery_country_code} {$order_data.delivery_address_book_id} {$order_data.billing_gender} {$order_data.billing_phone} {$order_data.billing_fax} {$order_data.billing_firstname} {$order_data.billing_lastname} {$order_data.billing_company} {$order_data.billing_company_2} {$order_data.billing_company_3} {$order_data.billing_street_address} {$order_data.billing_suburb} {$order_data.billing_city} {$order_data.billing_postcode} {$order_data.billing_zone} {$order_data.billing_zone_code} {$order_data.billing_country} {$order_data.billing_country_code} {$order_data.billing_address_book_id} {$order_data.payment_code} {$order_data.subpayment_code} {$order_data.shipping_code} {$order_data.currency_code} {$order_data.currency_value} {$order_data.language_code} {$order_data.comments} {$order_data.last_modified} {$order_data.date_purchased} {$order_data.orders_status} {$order_data.orders_date_finished} {$order_data.account_type} {$order_data.allow_tax} {$order_data.customers_ip} {$order_data.shop_id} {$order_data.orders_data} {$order_data.campaign_id} {$order_data.orders_exported} {$order_data.orders_status_id} {$order_data.date_purchased_plain} {$order_data.payment_name} |
Zusätzliche Variablen im “send_order”-Mail Template:
Die Artikelausgabe in der “send_order”-Mail, die Variablen sind nur innerhalb der Schleife (Zwischen “{foreach name=aussen item=order_values from=$order_products}” und dem nächsten “{/foreach}” verfügbar.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | {$order_values.orders_products_id} {$order_values.orders_id} {$order_values.products_id} {$order_values.products_model} {$order_values.products_name} {$order_values.products_price} {$order_values.products_discount} {$order_values.products_tax} {$order_values.products_tax_class} {$order_values.products_quantity} {$order_values.products_data} {$order_values.allow_tax} {$order_values.products_shipping_time} {$order_values.products_add_price} {$order_values.products_final_price} {$order_values.products_tax_rate} {$order_values.products_final_tax} {$order_values.add_single_tax} |
Die Variablen im “password_optin”-Mail Template:
Benötigt der Kunde ein neues Passwort, fordert er dieses über den Shop an und erhält diese Mail.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | {$address_data.address_book_id} {$address_data.external_id} {$address_data.customers_id} {$address_data.customers_gender} {$address_data.customers_dob} {$address_data.customers_phone} {$address_data.customers_fax} {$address_data.customers_company} {$address_data.customers_company_2} {$address_data.customers_company_3} {$address_data.customers_firstname} {$address_data.customers_lastname} {$address_data.customers_street_address} {$address_data.customers_suburb} {$address_data.customers_postcode} {$address_data.customers_city} {$address_data.customers_country_code} {$address_data.address_class} {$address_data.date_added} {$address_data.last_modified} {$address_data.customers_country} {$address_data.customers_zone} {$address_data.customers_age} {$address_data.allow_change} |
Die Variablen im “new_password”-Mail Template:
Dieses ist die Mail, in der das neue Passwort verdendet wird. (Nachdem dieses in der “password_optin” angefordert wurde)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | {$address_data.address_book_id} {$address_data.external_id} {$address_data.customers_id} {$address_data.customers_gender} {$address_data.customers_dob} {$address_data.customers_phone} {$address_data.customers_fax} {$address_data.customers_company} {$address_data.customers_company_2} {$address_data.customers_company_3} {$address_data.customers_firstname} {$address_data.customers_lastname} {$address_data.customers_street_address} {$address_data.customers_suburb} {$address_data.customers_postcode} {$address_data.customers_city} {$address_data.customers_country_code} {$address_data.address_class} {$address_data.date_added} {$address_data.last_modified} {$address_data.customers_country} {$address_data.customers_zone} {$address_data.customers_age} {$address_data.allow_change} |
Die Variablen im “create_account”-Mail Template:
Nachdem der Kunde einen Account erstellt hat, erhält er diese Mail.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | {$address_data.default.address_class} {$address_data.default.customers_gender} {$address_data.default.customers_firstname} {$address_data.default.customers_lastname} {$address_data.default.customers_dob} {$address_data.default.customers_company} {$address_data.default.customers_company_2} {$address_data.default.customers_company_3} {$address_data.default.customers_street_address} {$address_data.default.customers_suburb} {$address_data.default.customers_postcode} {$address_data.default.customers_city} {$address_data.default.customers_country_code} {$address_data.default.customers_phone} {$address_data.default.customers_fax} {$address_data.default.customers_id} {$address_data.default.address_book_id} {$address_data.default.success} |
Natürlich kann man die Variablen auch mit IF-Abfragen nutzen, ein gutes Beispiel dafür habe ich Artikel “Vorkasse bei Multishops” bereits gebloggt.
Viel Spass beim testen.




Hallo, schöne Liste. Vielen Dank. Eine Frage noch, wie kann man die tatsichliche Lagermenge in der Bestellbestätigung darstellen? Ich habe es über die Variable {$xt_products.products_quantity} versucht, wird aber leider nicht angezeigt. Danke vorab.