Variablen - Bestellungen
Für den Export von Bestellungen stehen folgende Variablen zur Verfügung:
Variable | Inhalt | Beschreibung |
{$data.order_data.orders_id} | int | Bestellnummer |
{$data.order_data.customers_id} | string | Kunden-ID |
{$data.order_data.customers_cid} | string | Kundennummer |
{$data.order_data.customers_status} | int | Kundengruppen-ID |
{$data.order_data.customers_email_address} | String | E-Mail-Adresse |
{$data.order_data.payment_code} | String | Zahlungsweise |
{$data.order_data.subpayment_code} | String | Sub-Zahlungsweise |
{$data.order_data.shipping_code} | String | Versandart |
{$data.order_data.currency_code} | String | Währung |
{$data.order_data.currency_value} | decimal | Währungsfaktor |
{$data.order_data.language_code} | char(2) | Sprachcode |
{$data.order_data.comments} | String | Kommentare |
{$data.order_data.date_purchased} | date | Kaufdatum |
{$data.order_data.orders_status} | int | Bestellstatus-ID |
{$data.order_data.allow_tax} | int | Steuer-Flag |
{$data.order_data.shop_id} | int | Mandanten-ID |
{$data.order_data.campaign_id} | int | Kampagnen-ID |
{$data.order_data.date_purchased_plain} | datetime | Kaufdatum/Zeit |
Lieferanschrift
{$data.order_data.delivery_gender} | string | Geschlecht (m/f/c) |
{$data.order_data.delivery_phone} | string | Telefon |
{$data.order_data.delivery_fax} | string | Fax |
{$data.order_data.delivery_firstname} | string | Vorname |
{$data.order_data.delivery_lastname} | string | Nachname |
{$data.order_data.delivery_company} | string | Firma |
{$data.order_data.delivery_company_2} | string | Firma 2 |
{$data.order_data.delivery_company_3} | string | Firma 3 |
{$data.order_data.delivery_street_address} | string | Adresse |
{$data.order_data.delivery_suburb} | string | Vorort |
{$data.order_data.delivery_city} | string | Stadt |
{$data.order_data.delivery_postcode} | int | PLZ |
{$data.order_data.delivery_zone} | int | Zone |
{$data.order_data.delivery_zone_code} | string | Zonen-Code |
{$data.order_data.delivery_country} | string | Land |
{$data.order_data.delivery_country_code} | string | Ländercode |
{$data.order_data.delivery_address_book_id} | int | Adressen-ID |
Rechnungsanschrift
{$data.order_data.billing_gender} | string | Geschlecht (m/f/c) |
{$data.order_data.billing_phone} | string | Telefon |
{$data.order_data.billing_fax} | string | Fax |
{$data.order_data.billing_firstname} | string | Vorname |
{$data.order_data.billing_lastname} | string | Nachname |
{$data.order_data.billing_company} | string | Firma |
{$data.order_data.billing_company_2} | string | Firma 2 |
{$data.order_data.billing_company_3} | string | Firma 3 |
{$data.order_data.billing_street_address} | string | Adresse |
{$data.order_data.billing_suburb} | string | Vorort |
{$data.order_data.billing_city} | string | Stadt |
{$data.order_data.billing_postcode} | int | PLZ |
{$data.order_data.billing_zone} | int | Zone |
{$data.order_data.billing_zone_code} | string | Zonen-Code |
{$data.order_data.billing_country} | string | Land |
{$data.order_data.billing_country_code} | string | Ländercode |
{$data.order_data.billing_address_book_id} | int | Adressen-ID |
Gesamtbeträge
{$data.order_total.total.plain} | decimal | Gesamtbetrag incl. Steuern |
{$data.order_total.total_otax.plain} | decimal | Gesamtbetrag excl. Steuern |
{$data.order_total.product_total.plain} | decimal | Gesamtbetrag, Artikel incl. Steuern |
{$data.order_total.product_total_otax.plain} | decimal | Gesamtbetrag, Artikel excl. Steuern |
Artikeldaten
Die Artikeldaten befinden sich in einem array {$data.order_products}
Auf Inhalte kann direkt zugegriffen werden mit z. B. order_products.0.products_name oder es wird eine Schleife verwendet (siehe Smarty Dokumentation foreach)
[order_products] => Array
(
[0] => Array
(
[orders_products_id] => 7
[orders_id] => 1
[products_id] => 1
[products_model] => art001
[products_name] => Standardartikel
[products_price] => Array
(
[formated] => <span class="price"> 60,00 EUR</span>
[plain] => 60
[plain_otax] => 50
)
[products_discount] =>
[products_tax] => Array
(
[formated] => <span class="price"> 10,00 EUR</span>
[plain] => 10
[plain_otax] => 0
)
[products_tax_class] => 1
[products_quantity] => 1.00
[products_data] =>
[allow_tax] => 1
[products_shipping_time] =>
[products_final_price] => Array
(
[formated] => <span class="price"> 60,00 EUR</span>
[plain] => 60
[plain_otax] => 50
)
[products_tax_rate] => 20
[products_final_tax] => Array
(
[formated] => <span class="price"> 10,00 EUR</span>
[plain] => 10
[plain_otax] => 0
)
)
)