Hallo,
ich habe ein Problem wo ich absolut nicht weiter weiß. Ich habe folgende Weg durch meine Formulare und folgendes TS:
1)Versandadresse
|
2)Lieferadresse (optional, aber wenn dann Errcheck 'delivery')
/ \
/ \
3)Versand Dtl Versand andere Länder
/ \ \
3.1)ZahlungBank 3.2)Zahlung Rechnung [...]
(errcheck 'bank') \
/ \
4.1)Zusammenfassung1 4.2)Zusammenfassung2
/ \
fertig fertig
# allgemeiner Default-Weg, läuft auf CC-Zahlung raus
# andere Wege überschreiben den Wert je nach A-Fall
plugin.tx_thmailformplus_pi1.default.email_requiredfields = creditcard
# letzter Schritt, allgemeiner Weg, mit zusaetzl Lieferadresse
[globalVar = GP:deliveryaddress = Ja]
plugin.tx_thmailformplus_pi1.multipage.4.postfix = _delivery
plugin.tx_thmailformplus_pi1.default.email_requiredfields = delivery, creditcard
[global]
# fuer Deutschland gibt es keine CC Zahlung
[globalVar = GP:country = Deutschland]
plugin.tx_thmailformplus_pi1.default.email_requiredfields =
plugin.tx_thmailformplus_pi1.multipage.3.postfix = _deutschland
[global]
# fuer Deutschland und Lieferadresse, CC nicht noetig
[globalVar = GP:country = Deutschland] && [globalVar = GP:deliveryaddress = Ja]
plugin.tx_thmailformplus_pi1.multipage.3.postfix = _deutschland
plugin.tx_thmailformplus_pi1.default.email_requiredfields = delivery
[global]
#######################################################################################################
# fuer Deutschland, Zahlung per Rechnung
[globalVar = GP:country = Deutschland] && [globalVar = GP:cashing = Rechnung]
plugin.tx_thmailformplus_pi1.default.email_requiredfields =
plugin.tx_thmailformplus_pi1.multipage.4.postfix = _deutschlandinvoice
[global]
# fuer Deutschland, Zahlung per Rechnung und Lieferadresse
[globalVar = GP:country = Deutschland] && [globalVar = GP:cashing = Rechnung] && [globalVar = GP:deliveryaddress = Ja]
plugin.tx_thmailformplus_pi1.default.email_requiredfields =
plugin.tx_thmailformplus_pi1.multipage.4.postfix = _deutschlandinvoicedelivery
[global]
#######################################################################################################
(**)[globalVar = GP:country = Deutschland] && [globalVar = GP:cashing = Ueberweisung]
plugin.tx_thmailformplus_pi1.multipage.4.postfix = _deutschlandbanktrans
plugin.tx_thmailformplus_pi1.default.email_requiredfields = bank
[global]
(***)[globalVar = GP:country = Deutschland] && [globalVar = GP:cashing = Ueberweisung] && [globalVar = GP:deliveryaddress = Ja]
plugin.tx_thmailformplus_pi1.default.email_requiredfields = bank
plugin.tx_thmailformplus_pi1.multipage.4.postfix = _deutschlandbanktransdelivery
[global]
Es funktioniert alles bis zu (**) bzw. (***). Wenn in Schritt 2 des Formulars keine Lieferadresse eingegeben wird, dann wird über die Conditions zu (**) geleitet, alles funktioniert, im Schritt 3 wird der Errorcheck 'bank' erfolgreich durchgeführt.
Wenn aber in Schritt 2 eine Lieferadresse angegeben wird, wird diese Lieferadresse geprüft (errorcheck 'delivery') und ich werde für Schritt 3 zu (***) geleitet. Und da passierts: kein Errorcheck mehr , es wird ohne Prüfung einfach weitergeleitet zu Schritt 4. Das komische daran: er wertet die Condition richtig aus, da
1) in diesem Fall auch plugin.tx_thmailformplus_pi1.multipage.4.postfix = _deutschlandbanktransdelivery richtig gesetzt ist (an der Stelle (***)) und
2) ich im TypoScript Objekt Browser bei gesetzten Conditions sehe, dass in diesem Fall der ErrorCheck im TS auf 'bank' steht. Er wird aber nicht ausgeführt.
Nochmal kurz das Problem:
Schritt 2 ohne Lieferadresse => Schritt 3 funktioniert ErrorCheck 'bank'
Schritt 2 MIT Lieferadresse => Schritt 3 funktioniert ErrorCheck 'bank' nicht mehr, wird schlichtweg ignoriert, obwohl im Typoscript Object Browser zu sehen
Irgendwelche Ideen?
Kann man irgendwie besser debuggen? Achja es geht um MailfromPlus 4.0.3 und Typo3 4.1.1 ...
Schöne Grüße,
Bern