Artikel
Menge
Personalisierung
{% for s in data.korb %}
{% if s.klassen %}
{% set qt = s.klassen.student|length %}
{{ s.qty * qt }} x
{% else %}
{{ s.qty }} x
{% endif %}
{% if s.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 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 paypalBaslik = s.productExtra.text|striptags|replace({"\n": " ", "\r": "", "\t": ""}) %}
{{ s.productExtra.text|striptags }} ({{ urunLessonName }} - {{ urunKlassenName }})
{% elseif s.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 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 }})
{% endif %}
{% if app.user.userTyped.id == 3 %}
{% if s.lehrerLAtexCode != 'typePt' %}
{% if s.klassen %}
{{ s.klassen.name }}
{% elseif s.student %}
{{ s.student }}
{% else %}
{% endif %}
{% else %}
Lehrerexemplar
{% endif %}
{% else %}
{% if s.klassen %}
{{ s.klassen.name }}
{% elseif s.student %}
{{ s.student }} {{ s.studentNachname }}
{% else %}
{% endif %}
{% endif %}
{% 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 %}
CHF
{{ urun_fiyat|number_format(2,'.','') }}
{% endfor %}