## 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 {{vtIf: {bezahlt} .eq. 1}} {{vtIf: {erledigt} .neq. 1 .and. {erledigt} .neq. 0}} {{vtIf: {Anzahl_Prints} .gt. 0}} {{vtElseIf: {Datenlieferung} .eq. 1}} {{vtElse}} {{vtDo: -act="update", -obj="{vtID}", erledigt="1"}} {{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|lastschrift|sepa .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}' ) }} {{vtElse}} {{vtCalc: sprintf( '{vtGet:s_txt_0054,escaped}', '{Vorname:escaped}', '{Name:escaped}' ) }} {{vtEndIf}} {{vtSet: Anredezeile }} {{vtIf: {vtGet:Language} .eq. en}} {{vtSet: Betreff="Your images are ready for download"}} {{vtSet: Mailtext="{vtInclude:mails/notify_delivery_en.txt}"}} {{vtElse}} {{vtSet: Betreff="Ihre Daten stehen zum Herunterladen bereit"}} {{vtSet: Mailtext="{vtInclude:mails/notify_delivery.txt}"}} {{vtEndIf}} {{vtDo: -act="mail", -to="{Email}", -subject="{vtGet:Betreff}", -message="{vtGet:Mailtext,raw}"}} {{vtDo: -act="update", -obj="{vtID}", DeliveryNotificationSent="{vtCurrentDate} {vtCurrentTime}"}} {{vtEndIf}} {{vtIf: {vtGlobal:pxtcPxprintExecution} .neq. 1 .and. {vtGet:TransferToPxprint} .neq. 1 }} {{vtInclude: order.pxprint.html}} {{vtEndIf}}