{{vtIf: {vtName} .neq. Bestellung {Nummer} }} {{vtDo: -act="update", -obj="{vtId}", -properties[name]="Bestellung {Nummer}" }} {{vtEndIf}} ## Eine Bestellung wird automatisch als "erledigt" gekennzeichnet ## wenn sie auf "bezahlt" gesetzt wurde und keine Prints enthält ## und keine Datenlieferung auf CD gewünscht ist ## und keine Dateiprodukte ohne High-res-Bindung enthält {{vtIf: {bezahlt} .eq. 1}} {{vtIf: {erledigt} .neq. 1 .and. {erledigt} .neq. 0}} {{vtIf: {Anzahl_Prints} .gt. 0}} {{vtElseIf: {Datenlieferung} .eq. 1}} {{vtElse}} {{vtRepeat: {Warenkorb:raw} }} {{vtIf: {vtItem:type} .eq. file .and. {vtItem:hires_path} .eq.}} {{vtSet: Incomplete = "1" }} {{vtExit}} {{vtEndIf}} {{vtEndRepeat}} {{vtIf: {vtGet:Incomplete} .eq. }} {{vtDo: -act="update", -obj="{vtID}", erledigt="1"}} {{vtEndIf}} {{vtEndIf}} {{vtEndIf}} {{vtEndIf}} ## Wenn eine Bestellung als "bezahlt" gekennzeichnet wurde und ## Artikel vom Typ "file" enthält, wird eine E-Mail-Benachrichtigung ## an den Kunden gesendet (es sei denn, es ist Datenlieferung auf ## CD gewünscht, oder die Bezahlmethode ist Rechnung/Lastschrift) {{vtRepeat:{Warenkorb:raw} }} {{vtIf: {vtItem:type} .eq. file .and. {vtItem:hires_path} .neq.}} {{vtSet: ContainsHiresLinks="1"}} {{vtExit}} {{vtEndIf}} {{vtEndRepeat}} {{vtIf: {vtGet:ContainsHiresLinks} .eq. 1 .and. {bezahlt} .eq. 1 .and. {abgeschlossen} .eq. 1 .and. {Bezahlmethode} .nin. rechnung|sepa .and. {Rechnungsbetrag} .gt. 0 .and. {Datenlieferung} .neq. 1 .and. {DeliveryNotificationSent} .eq. }} {{vtInclude: includes/initialize.html }} {{vtIf: {Anrede} .eq. Frau }} {{vtCalc: sprintf( '{vtGet:s_txt_0055,escaped}', '{Vorname:escaped}', '{Name:escaped}' ) }} {{vtElseIf: {Anrede} .eq. Herr }} {{vtCalc: sprintf( '{vtGet:s_txt_0054,escaped}', '{Vorname:escaped}', '{Name:escaped}' ) }} {{vtElse}} {{vtCalc: sprintf( '{vtGet:s_txt_0073,escaped}', '{Vorname:escaped}', '{Name:escaped}' ) }} {{vtEndIf}} {{vtSet: Anredezeile }} {{vtIf: {vtGlobal:pxtcLanguageInformal} .eq. 1 }} {{vtSet: Suffix = "_inf" }} {{vtEndIf}} {{vtIf: {vtGet:Language} .eq. en}} {{vtSet: Mailtext="{vtInclude: /config/mails/notify_delivery_en{vtGetSuffix}.txt, mails/notify_delivery_en{vtGet:Suffix}.txt, /config/mails/notify_delivery_en.txt, mails/notify_delivery_en.txt }"}} {{vtElse}} {{vtSet: Mailtext="{vtInclude: /config/mails/notify_delivery{vtGet:Suffix}.txt, mails/notify_delivery{vtGet:Suffix}.txt, /config/mails/notify_delivery.txt, mails/notify_delivery.txt }"}} {{vtEndIf}} {{vtDo: -act="mail", -to="{Email}", -subject="{vtGet:s_txt_0061}", -message="{vtGet:Mailtext,raw}"}} {{vtDo: -act="update", -obj="{vtID}", DeliveryNotificationSent="{vtDate|d.m.Y H:i}"}} {{vtEndIf}} {{vtIf: {vtGlobal:pxtcPxprintExecution} .neq. 1 .and. {vtGet:TransferToPxprint} .neq. 1 }} {{vtInclude: order.pxprint.html}} {{vtEndIf}}