# Configuration for the plugin "p123coupon_lib" # # # # Konfigurationsbeispiel typoscript: # ************************************************************************************************************************************************ # .DEVK_WKZ-D2623 -> XML-Export: "code=DEVK_WKZ-D2623" // Bei "defaultCoupons" mit Präfix "defaultCoupons-" # { # count = 1 -> * # price = -7.5 -> * dezimal als Punkt! 7.5 # pos.lang.de = 7.5% Rabatt -> * Warenkorb-Text. KEIN "," "|" verwenden! # ext = p123search -> * p123search oder p123designer. Kombination als "p123search+p123designer" # unique = 1 -> * Bei "unique=1" -> Vorhandene Gutscheine im Warenkorb werden gelöscht. # coupon = var -> * "var" = Prozent / "fixed" = fixer Betrag / "amount" = Anzahl # combined = DEVK_WKZ-D2623-DK -> Kombination mit Coupon z.B. "DEVK_WKZ-D2623-DK". Möglich auch eine "databaseCoupons" - Konfiguration # min = 200 -> Betrag der min. übernommen wird. (Prüfung in Kombination mit "coupon = var oder amount") # max = 600 -> Betrag der max. übernommen wird. (Prüfung in Kombination mit "coupon = var oder amount") # rule.if (stdWrap) -> Regel ab wann der Gutschein gültig ist # rule.message -> Fehlermeldung bei negativen rule-checkif # } # * Angabe ist erforderlich! # ************************************************************************************************************************************************ # # # # Konfigurationsbeispiel DB-Tabelle: # ************************************************************************************************************************************************ # # Feld "conf" -> Verweis auf Konfiguration per "typoscript" z.B. "DEVK_WKZ-D2623". # DB-Konfiguration wird ignoriert. # # Feld "used" -> Wird bei Verwendung des Gutschein auf "1" gesetzt. # # # # Reihenfolge: # ************************************************************************************************************************************************ # # 1. defaultCoupons -> wird automatisch in den Warenkorb eingefügt # # 2. manuelle Eingaben: # # -> 1. Prüfen ob ein "specialCoupons" vorhanden ist # -> 2. Prüfen ob ein "databaseCoupons" vorhanden ist # Konfiguration des databaseCoupons entwerder per DB-Tabelle # oder # als "databaseCoupons" # # # # Delete-Funktion im Warenkorb: # ************************************************************************************************************************************************ # Gutschein-Position kann im Warenkorb gelöscht werden. Ist kein Gutschein mehr im Warenkorb vorhanden, wird # "defaultCoupons" erneut eingefügt. Dieser kann final gelöscht werden. # Wird "databaseCoupons" gelöscht wird "used" NICHT zurück gesetzt. plugin.tx_p123coupon { templateStdWrap = messageStdWrap = contentStdWrap.wrap =