Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
titleCSV
linenumberstrue
collapsetrue
{if $orderObject && $orderObject->getPayment()}
{assign value=$orderObject->getPayment()->get('payment_desc') var="payment_desc"}
{assign value=$orderObject->getPayment()->get('price') var="payment_price"}
{/if}

{$exportColumns = array()}{foreach from=$cart item=orderItem}{$exportColumns[] = [
        'ID der Bestellposition' => $orderItem.id,
        'Lieferanschrift Unternehmen' => $orderObject->get('order_DeliverAdressCompany'),
        'Lieferanschrift Unternehmen 2' => $orderObject->get('order_DeliverAdressCompany2'),
        'Lieferanschrift Anschrift' => $orderObject->get('order_DeliverAdressName'),
        'Lieferanschrift Ansprechpartner Vorname' => $orderObject->get('order_DeliverAdressFirstname'),
        'Lieferanschrift Ansprechpartner Nachname' => $orderObject->get('order_DeliverAdressLastname'),
        'Lieferanschrift Ansprechpartner Straße' => $orderObject->get('order_DeliverAdressStreet'),
        'Lieferanschrift Ansprechpartner PLZ' => $orderObject->get('order_DeliverAdressZIP'),
        'Lieferanschrift Ansprechpartner Stadt' => $orderObject->get('order_DeliverAdressTown'),
        'Lieferanschrift Ansprechpartner E - Mail' => $orderObject->get('order_DeliverAdressEMail'),
        'Artikelnummer' => $orderItem.article_desc_intern,
        'stueckzahl' => $orderItem.s_qty,
        'aussendienstnummer' => 0,
        'pdf_name' => $orderItem.filename,
        'auftrags_datum' => $orderObject->get('cdate'),
        'kunde' => $orderObject->getCustomer()->get('customer_company'),
        'kundenid' => $orderObject->getCustomer()->get('id'),
        'artikelid' => $orderItem.aid,
        'InvoiceAdressCompany1' => $orderObject->get('InvoiceAdressCompany1'),
        'InvoiceAdressCompany2' => $orderObject->get('InvoiceAdressCompany2'),
        'InvoiceAdressName' => $orderObject->get('InvoiceAdressName'),
        'InvoiceAdressStreet' => $orderObject->get('InvoiceAdressStreet'),
        'InvoiceAdressZIP' => $orderObject->get('InvoiceAdressZIP'),
        'InvoiceAdressTown' => $orderObject->get('InvoiceAdressTown'),
        'preis_netto' => $orderItem.s_total,
        'mwst' => $orderItem.s_mwst,
        'persdata' => $orderItem.persdata,
        'besteller' => $orderObject->get('order_customer_user_id'),
        'md5' => $orderItem.md5,
        'auftragsbezeichnung' => $orderObject->get('order_code'),
        'articletyp' => $orderItem.article_type,
        'sap_number' => $orderItem.article_sap_nummer,
        'costcenter' => $orderObject->getCustomerUser()->get('customer_user_costcenter'),
        'kundennummer' => $orderObject->getCustomerUser()->get('customer_user_kundennummer'),
        'budgetgruppenid' => $orderObject->get('order_budgetgruppen_user_id'),
        'lieferadresse_ansprechpartner' => $orderObject->get('order_DeliverAdressName'),
        'rechnungsadresse_ansprechpartner' => $orderObject->get('InvoiceAdressName'),
        'zahlungsart' => $payment_desc,
        'zahlungsart_preis' => $payment_price,
        'versandkosten' => $orderObject->get('versandkosten'),
        'remark' => $orderItem.remark,
        'auftragsname' => $orderItem.jobname,
        'costcenterCart' => $orderItem.cstctr,
        'price_total' => $orderObject->get('brutto'),
        'country_code' => $orderObject->get('order_DeliverAdressCountryCode')
    ]}{/foreach}{array_keys($exportColumns[0])|implode:';'}
{foreach from=$exportColumns item=row}{$row|implode:';'}
{/foreach}

...

Codeblock
languageactionscript3
titlezipDownloadUrl Adressliste für Liefer- und Rechnungsdaten - AddressListForCart
collapsetrue
{*Version 1*assign value=$orderObject->getOrderInfo('AddressListForCart-delivery_address_list') var="deliveryAddressListValues"}
{if $cart!is_array($deliveryAddressListValues)}
    {foreachassign keyvalue=key[] item=item from=$cart}
        {if $item.zipDownloadUrlvar="deliveryAddressListValues"}
{/if}
{assign value=$orderObject->getOrderInfo('AddressListForCart-invoice_address_list') var="invoiceAddressListValues"}
{if !is_array($invoiceAddressListValues)}
    {assign value=[] var="invoiceAddressListValues"}
{/if}

   <url>{$item.zipDownloadUrl}</url>...

      Rechnungsadresseliste Adressnummer: {/if}
    {/foreach}
if isset($invoiceAddressListValues['Adressnummer'])}{$invoiceAddressListValues['Adressnummer']}{/if}

{*Version 2*}
{if $orderItems}
Lieferadresseliste Kundennummer: {if isset($deliveryAddressListValues['Kundennummer'])}{$deliveryAddressListValues['Kundennummer']}{/if}


Codeblock
languageactionscript3
titlezipDownloadUrl
collapsetrue
{*Version 1*}
{if $cart}
    {foreach key=key item=item from=$orderItems$cart}
        {if $item.orderItem.zipDownloadUrl}
            <url>{$item.orderItem.zipDownloadUrl}</url>
        {else/if}
    {/foreach}
{/if}

{*Version 2*}
   <nourl items/>
   {if $orderItems}
    {/if}
    {/foreach}
{else} {*Posten bezogener Export*}foreach key=key item=item from=$orderItems}
        {if $orderItem$item.orderItem.zipDownloadUrl}
            <url>{$orderItem$item.orderItem.zipDownloadUrl}</url>
    {else}    {else}
            <nourl item items/>
        {/if}
    {/foreach}
{else} {*Posten bezogener Export*}
    {if $orderItem.zipDownloadUrl}
        <url>{$orderItem.zipDownloadUrl}</url>
    {else}
        <nourl item />
    {/if}
{/if}


Codeblock
languageactionscript3
firstline0
titleReseller Artikel Informationen
collapsetrue
{foreach key=key item=value from=$orderItem.info}
	{if $key === 'printwarehouseArticleSettings'}
		{assign var=object value=$value|json_decode:1}
		Preis: {$object.price|number_format:2:',':'.'} €<br>
		{foreach key=name item=setting from=$object.settings}
			{$setting['name']}:{$setting['value']}<br>
		{/foreach}
	{/if}
{/foreach}