{% extends 'main_base.html.twig' %} {% block title %}Prufungsvorbereitung{% endblock %} {% block description %}Prufungsvorbereitung{% endblock %} {% block content %} {% set data = bestellData[0] %}

Bestelldetails

CHF

Warenkorb

Artikel

Menge

Personalisierung

{% for s in data.korb %}
{% if s.product != '' %} {% set typed = 'product' %} {% set productId = s.product.id %} {% set qty = getKorbQty(s.product.id,'product') %} {# {% set paypalBaslik = s.product.title %} #} {% set urunLessonName = s.product.lesson.name|default %} {% set urunKlassenName = s.product.lesson.exam.name|default %} {{ s.product.title }} ({{ urunLessonName }} - {{ urunKlassenName }}) {# {% if s.klassen %}- {{ s.klassen.name }} {% elseif s.student %}- {{ s.student }} {% endif %} #} {% elseif s.productModul != '' %} {% set typed = 'modul' %} {% set productId = s.productModul.id %} {% set qty = getKorbQty(s.productModul.id,'productModul') %} {# {% set paypalBaslik = s.productModul.text|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %} #} {% set urunLessonName = s.productModul.product.lesson.name|default %} {% set urunKlassenName = s.productModul.lesson.exam.name|default %} {{ s.productModul.text|striptags }} {% elseif s.productExtra != '' %} {% set typed = 'extra' %} {% set productId = s.productExtra.id %} {% set qty = getKorbQty(s.productExtra.id,'productExtra') %} {# {% set paypalBaslik = s.productExtra.text|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %} #} {{ s.productExtra.text|striptags }} ({{ urunLessonName }} - {{ urunKlassenName }}) {% elseif s.thema != '' %} {% set typed = 'thema' %} {% set productId = s.thema.id %} {% set qty = getKorbQty(s.thema.id,'thema') %} {% set urunLessonName = s.thema.bereich.lektion.name|default %} {% set urunKlassenName = s.thema.bereich.lektion.name|default %} {# {% set paypalBaslik = s.thema.name|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %} #} {{ s.thema.name|striptags }} - ({{ urunLessonName }} - {{ urunKlassenName }}) {% elseif s.laden != '' %} {% set typed = 'laden' %} {% set productId = s.laden.id %} {% set qty = getKorbQty(s.laden.id,'laden') %} {% set urunLessonName = s.laden.prufung.name|default %} {% set urunKlassenName = s.laden.stadt.name|default %} {# {% set paypalBaslik = s.laden.title|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %} #} {{ s.laden.title|striptags }} - ({{ urunLessonName }} - {{ urunKlassenName }}) {% elseif s.ladenModul != '' %} {% set typed = 'ladenModul' %} {% set productId = s.ladenModul.id %} {% set qty = getKorbQty(s.ladenModul.id,'ladenModul') %} {% set urunLadenName = s.ladenModul.laden.title|default %} {# {% set urunKlassenName = s.ladenModul.stadt.name|default %} #} {# {% set paypalBaslik = s.laden.title|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %} #} {{ s.ladenModul.title|striptags }} - ({{ urunLadenName }} {% endif %}
{% set korbPersonalisierung = getKorbBringen2Personel(productId,typed) %} {% for itemx in korbPersonalisierung %} {% if itemx.klassen %}
{{ itemx.klassen.student|length }}
{% else %}
{{ itemx.qty }}
{% endif %} {% endfor %}
{% set urun_fiyat = s.price %} {% for itemx in korbPersonalisierung %} {% if app.user.userTyped.id == 3 %} {% if itemx.lehrerLAtexCode != 'dataPt' %} {% if itemx.klassen %} {{ itemx.klassen.name }}
{% elseif itemx.student and itemx.studentNachname %} {{ itemx.student }} {{ itemx.studentNachname }}
{% else %} {% endif %} {% else %} Lehrerexemplar
{% endif %} {% else %} {% if itemx.klassen %} {{ itemx.klassen.name }}
{% elseif itemx.student and itemx.studentNachname %} {{ itemx.student }} {{ itemx.studentNachname }}
{% else %} {% endif %} {% endif %} {% endfor %}
{# {% if s.product != '' %} {% if app.user.userTyped.id == 1 %} {% set urun_fiyat = s.product.price %} {% elseif app.user.userTyped.id == 2 %} {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat = s.product.priceB * studentCount %} {% else %} {% set urun_fiyat = s.product.priceB %} {% endif %} {% elseif app.user.userTyped.id == 3 %} {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat = s.price * studentCount %} {% else %} {% set urun_fiyat = s.price %} {% endif %} {% endif %} {% elseif s.productModul != '' %} {% if app.user.userTyped.id == 1 %} {% set urun_fiyat = s.productModul.price %} {% elseif app.user.userTyped.id == 2 %} {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat = s.productModul.priceB * studentCount %} {% else %} {% set urun_fiyat = s.productModul.priceB %} {% endif %} {% elseif app.user.userTyped.id == 3 %} {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat = s.price * studentCount %} {% else %} {% set urun_fiyat = s.price %} {% endif %} {% endif %} {% elseif s.productExtra != '' %} {% if app.user.userTyped.id == 1 %} {% set urun_fiyat = s.productExtra.price %} {% elseif app.user.userTyped.id == 2 %} {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat = s.productExtra.priceB * studentCount %} {% else %} {% set urun_fiyat = s.productExtra.priceB %} {% endif %} {% elseif app.user.userTyped.id == 3 %} {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat =s.price * studentCount %} {% else %} {% set urun_fiyat = s.price %} {% endif %} {% endif %} {% elseif s.thema != '' %} {% if app.user.userTyped.id == 1 %} {% set urun_fiyat = s.thema.price %} {% elseif app.user.userTyped.id == 2 %} {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat = s.thema.priceB * studentCount %} {% else %} {% set urun_fiyat = s.thema.priceB %} {% endif %} {% elseif app.user.userTyped.id == 3 %} {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat =s.price * studentCount %} {% else %} {% set urun_fiyat = s.price %} {% endif %} {% endif %} {% elseif s.laden != '' %} {% if app.user.userTyped.id == 1 %} {% set urun_fiyat = s.laden.price %} {% elseif app.user.userTyped.id == 2 %} {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat = s.laden.priceB * studentCount %} {% else %} {% set urun_fiyat = s.laden.priceB %} {% endif %} {% elseif app.user.userTyped.id == 3 %} {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat =s.price * studentCount %} {% else %} {% set urun_fiyat = s.price %} {% endif %} {% endif %} {% endif %} #} {# {{ urun_fiyat|number_format(2,'.','') }} #} {% for itemx in korbPersonalisierung %}
{# {% if s.klassen %} {% set studentCount = s.klassen.student|length %} {% set urun_fiyat = itemx.price * studentCount %} {% else %} {% set urun_fiyat = itemx.price %} {% endif %} {{ urun_fiyat|number_format(2,'.','') }} #} {% if itemx.product is not null %} {% set paypalBaslik = itemx.product.title %} {% if app.user %} {% if app.user.userTyped.id == 1 %} {% if itemx.product.priceA2 %} {% set produktpreis = itemx.qty * itemx.product.priceA2 %} {{ produktpreis|number_format(2) }} {% else %} {% set produktpreis = itemx.qty * itemx.product.price %} {{ produktpreis|number_format(2) }} {% endif %} {% elseif app.user.userTyped.id == 2 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.product.priceB %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.product.priceB %} {% endif %} {{ produktpreis|number_format(2) }} {% elseif app.user.userTyped.id == 3 %} {% if itemx.login == 1 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.price %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.price %} {% endif %} {{ produktpreis|number_format(2) }} {% else %} {% set xxx = getKorbLeerer(app.user.id) %} {% endif %} {% endif %} {% else %} {% if itemx.product.priceA2 %} {% set produktpreis = itemx.qty * itemx.product.priceA2 %} {{ produktpreis|number_format(2) }} {% else %} {% set produktpreis = itemx.qty * itemx.product.price %} {{ produktpreis|number_format(2) }} {% endif %} {% endif %} {% elseif itemx.productModul is not null %} {% set paypalBaslik = itemx.productModul.text|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %} {% if app.user %} {% if app.user.userTyped.id == 1 %} {% if itemx.productModul.priceA2 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.productModul.priceA2 %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.productModul.priceA2 %} {% endif %} {{ produktpreis|number_format(2) }} {% else %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.productModul.price %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.productModul.price %} {% endif %} {{ produktpreis|number_format(2) }} {% endif %} {% elseif app.user.userTyped.id == 2 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.productModul.priceB %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.productModul.priceB %} {% endif %} {{ produktpreis|number_format(2) }} {% elseif app.user.userTyped.id == 3 %} {% if itemx.login == 1 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.price %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.price %} {% endif %} {{ produktpreis|number_format(2) }} {% else %} {% set xxx = getKorbLeerer(app.user.id) %} {% endif %} {% endif %} {% else %} {% if itemx.productModul.priceA2 %} {% set produktpreis = itemx.qty * itemx.productModul.priceA2 %} {{ produktpreis|number_format(2) }} {% else %} {% set produktpreis = itemx.qty * itemx.productModul.price %} {{ produktpreis|number_format(2) }} {% endif %} {% endif %} {% elseif itemx.productExtra is not null %} {% set paypalBaslik = itemx.productExtra.text|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %} {% if app.user %} {% if app.user.userTyped.id == 1 %} {% if itemx.productExtra.priceA2 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.productExtra.priceA2 %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.productExtra.priceA2 %} {% endif %} {{ produktpreis|number_format(2) }} {% else %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.productExtra.price %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.productExtra.price %} {% endif %} {{ produktpreis|number_format(2) }} {% endif %} {% elseif app.user.userTyped.id == 2 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.productExtra.priceB %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.productExtra.priceB %} {% endif %} {{ produktpreis|number_format(2) }} {% elseif app.user.userTyped.id == 3 %} {% if itemx.login == 1 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.price %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.price %} {% endif %} {{ produktpreis|number_format(2) }} {% else %} {% set xxx = getKorbLeerer(app.user.id) %} {% endif %} {% endif %} {% else %} {% if itemx.productExtra.priceA2 %} {% set produktpreis = itemx.qty * itemx.productExtra.priceA2 %} {{ produktpreis|number_format(2) }} {% else %} {% set produktpreis = itemx.qty * itemx.productExtra.price %} {{ produktpreis|number_format(2) }} {% endif %} {% endif %} {% elseif itemx.thema is not null %} {% set paypalBaslik = itemx.thema.name|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %} {% if app.user %} {% if app.user.userTyped.id == 1 %} {% if itemx.thema.priceA2 %} {% set produktpreis = itemx.qty * itemx.thema.priceA2 %} {{ produktpreis|number_format(2) }} {% else %} {% set produktpreis = itemx.qty * itemx.thema.price %} {{ produktpreis|number_format(2) }} {% endif %} {% elseif app.user.userTyped.id == 2 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.thema.priceB %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.thema.priceB %} {% endif %} {{ produktpreis|number_format(2) }} {% elseif app.user.userTyped.id == 3 %} {% if itemx.login == 1 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.price %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.price %} {% endif %} {{ produktpreis|number_format(2) }} {% else %} {% set xxx = getKorbLeerer(app.user.id) %} {% endif %} {% endif %} {% else %} {% if itemx.thema.priceA2 %} {% set produktpreis = itemx.qty * itemx.thema.priceA2 %} {{ produktpreis|number_format(2) }} {% else %} {% set produktpreis = itemx.qty * itemx.thema.price %} {{ produktpreis|number_format(2) }} {% endif %} {% endif %} {% elseif itemx.laden is not null %} {% set paypalBaslik = itemx.laden.title|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %} {% if app.user %} {% if app.user.userTyped.id == 1 %} {% if itemx.laden.priceA2 %} {% set produktpreis = itemx.qty * itemx.laden.priceA2 %} {{ produktpreis|number_format(2) }} {% else %} {% set produktpreis = itemx.qty * itemx.laden.price %} {{ produktpreis|number_format(2) }} {% endif %} {% elseif app.user.userTyped.id == 2 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.laden.priceB %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.laden.priceB %} {% endif %} {{ produktpreis|number_format(2) }} {% elseif app.user.userTyped.id == 3 %} {% if itemx.login == 1 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.price %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.price %} {% endif %} {{ produktpreis|number_format(2) }} {% else %} {% set xxx = getKorbLeerer(app.user.id) %} {% endif %} {% endif %} {% else %} {% if itemx.laden.priceA2 %} {% set produktpreis = itemx.qty * itemx.laden.priceA2 %} {{ produktpreis|number_format(2) }} {% else %} {% set produktpreis = itemx.qty * itemx.laden.price %} {{ produktpreis|number_format(2) }} {% endif %} {% endif %} {% elseif itemx.ladenModul is not null %} {% set paypalBaslik = itemx.ladenModul.title|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %} {% if app.user %} {% if app.user.userTyped.id == 1 %} {% if itemx.ladenModul.priceA2 %} {% set produktpreis = itemx.qty * itemx.ladenModul.priceA2 %} {{ produktpreis|number_format(2) }} {% else %} {% set produktpreis = itemx.qty * itemx.ladenModul.price %} {{ produktpreis|number_format(2) }} {% endif %} {% elseif app.user.userTyped.id == 2 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.ladenModul.priceB %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.ladenModul.priceB %} {% endif %} {{ produktpreis|number_format(2) }} {% elseif app.user.userTyped.id == 3 %} {% if itemx.login == 1 %} {% if itemx.klassen %} {% set studentCount = itemx.klassen.student|length %} {% set produktpreisx = itemx.qty * itemx.price %} {% set produktpreis = produktpreisx * studentCount %} {% else %} {% set produktpreis = itemx.qty * itemx.price %} {% endif %} {{ produktpreis|number_format(2) }} {% else %} {% set xxx = getKorbLeerer(app.user.id) %} {% endif %} {% endif %} {% else %} {% if itemx.ladenModul.priceA2 %} {% set produktpreis = itemx.qty * itemx.ladenModul.priceA2 %} {{ produktpreis|number_format(2) }} {% else %} {% set produktpreis = itemx.qty * itemx.ladenModul.price %} {{ produktpreis|number_format(2) }} {% endif %} {% endif %} {% endif %}
{% endfor %}
{% endfor %}
{#
Warenkorb Total:
CHF {{ data.warenkorbGesamtbetrag|number_format(2,'.','') }}
#} {% if app.user.userTyped.id == 1 %}
Rabatt Gutschein:
- {{ data.rabattbetrag|number_format(2,'.','') }}
{% endif %}
Zwischentotal:
{{ (data.warenkorbGesamtbetrag - data.rabattbetrag)|number_format(2,'.','') }}
Lieferung:
{% if data.cargoType == 2 %} A-Post {% elseif data.cargoType == 1 %} B-Post {% elseif data.cargoType == 3 %} Swiss Express Mond {% endif %}
{{ data.versandbetrag|number_format(2,'.','') }}
Zahlung:
{% set odemeTipi = data.paymentType %} {% if odemeTipi == 1 %} {% set saferpayYuzdesi = data.paymentProzent[1].prozent %} VISA, Mastercard, Twint {{ saferpayYuzdesi }}% {% set odemeTipiTutar = data.preisunterschiedBezahlen %} {% elseif odemeTipi == 2 %} {% set paypalYuzdesi = data.paymentProzent[2].prozent %} PayPal {{ paypalYuzdesi }}% {% set odemeTipiTutar = data.preisunterschiedBezahlen %} {% elseif odemeTipi == 3 %} {% set postfinanceYuzdesi = data.paymentProzent[2].prozent %} PostFinance Card, PostFinance e-Finance {{ postfinanceYuzdesi }}% {% set odemeTipiTutar = data.preisunterschiedBezahlen %} {% elseif odemeTipi == 4 %} QR-Rechnung (Vorauskasse) {% set odemeTipiTutar = 0 %} {% endif %}
{{ odemeTipiTutar|number_format(2,'.','') }}
Total
{% set genelToplamTutar = data.totalPrice|number_format(2,'.','') %} {% set genelToplamTutarIndirimsiz = data.gesamtbetragOhneRabatt|number_format(2,'.','') %} {{ genelToplamTutar|number_format(2,'.','') }}
{% set genelToplamTutar2 = (bestellData[0].warenkorbGesamtbetrag|number_format(2,'.','') - bestellData[0].rabattbetrag|number_format(2,'.','')) + bestellData[0].versandbetrag|number_format(2,'.','') + bestellData[0].preisunterschiedBezahlen|number_format(2,'.','') %} {% if bestellData[0].paymentType == 2 %} {% set genelToplamTutar = (bestellData[0].warenkorbGesamtbetrag|number_format(2,'.','') - bestellData[0].rabattbetrag|number_format(2,'.','')) + bestellData[0].versandbetrag|number_format(2,'.','') + bestellData[0].preisunterschiedBezahlen|number_format(2,'.','') %} {% set genelToplamTutarIndirimsiz = bestellData[0].warenkorbGesamtbetrag|number_format(2,'.','') + bestellData[0].versandbetrag|number_format(2,'.','') + bestellData[0].preisunterschiedBezahlen|number_format(2,'.','') %} {# Canlı #} {# Sandbox #} {# #} {% endif %}
Rechnungsadresse
{% if data.bestellungenData[0].adresse[0].typ == 1 %} {{ data.bestellungenData[0].adresse[0].firma }}
{% if data.bestellungenData[0].adresse[0].vorname != '' and data.bestellungenData[0].adresse[0].name != '' %} {{ data.bestellungenData[0].adresse[0].vorname }} {{ data.bestellungenData[0].adresse[0].name }}
{% endif %} {% else %} {{ data.bestellungenData[0].adresse[0].vorname }} {{ data.bestellungenData[0].adresse[0].name }}
{% endif %} {{ data.bestellungenData[0].adresse[0].strasse }} {{ data.bestellungenData[0].adresse[0].strasseNr }}
{{ data.bestellungenData[0].adresse[0].plz }} {{ data.bestellungenData[0].adresse[0].ort }}
{{ data.bestellungenData[0].adresse[0].land }}
Lieferadresse
{% if data.adresse_typ == 0 %} {{ data.bestellungenData[0].adresse[0].firma }}
{% endif %} {% if data.bestellungenData[0].nutzerinformation[0].an == 1 %} {{ data.bestellungenData[0].lieferAdresse[0].firma }}
{% if data.bestellungenData[0].lieferAdresse[0].vorname != '' and data.bestellungenData[0].lieferAdresse[0].name != '' %} {{ data.bestellungenData[0].lieferAdresse[0].vorname }} {{ data.bestellungenData[0].lieferAdresse[0].name }}
{% endif %} {% else %} {{ data.bestellungenData[0].lieferAdresse[0].vorname }} {{ data.bestellungenData[0].lieferAdresse[0].name }} {% if data.bestellungenData[0].lieferAdresse[0].vorname != '' and data.bestellungenData[0].lieferAdresse[0].name != '' %}
{% endif %} {% endif %} {{ data.bestellungenData[0].lieferAdresse[0].strasse }} {{ data.bestellungenData[0].lieferAdresse[0].strasseNr }}
{{ data.bestellungenData[0].lieferAdresse[0].plz }} {{ data.bestellungenData[0].lieferAdresse[0].ort }}
{{ data.bestellungenData[0].lieferAdresse[0].land }}
{% if app.user %} {% else %}
Benutzerinformation
{{ data.dataUser.user.benutzername }}
{{ data.dataUser.user.email }}
{{ data.dataUser.profile.birthday }}
{% endif %}
{% if odemeTipi != 2 %} {% endif %}
-->
Bitte warten
{% endblock %} {% block pageScript %} {% endblock %}