# Configuration for the plugin "p123coupon_lib" plugin.tx_p123coupon { # defaultCoupons { # 1 { # count = 1 # price = -15 # # No comma allowed here # pos.lang.de = 15% Rabatt auf Mediakosten # ext = p123search # unique = 1 # # Percentage behavior: "var", fixed price: everything else # coupon = var # } # 2 { # count = 1 # price = -5 # # No comma allowed here # pos.lang.de = 5 € Rabatt auf Druckkosten # group = 3560x2520 # ext = p123designer # unique = 1 # # Percentage behavior: "var", fixed price: everything else that is true # coupon = 1 # } # } } plugin.tx_p123_pi { basket.p123search.if { value = ZZ_coupon isInList.field = group negate = 1 } } plugin.tx_p123checkout_pi1 { joinMedia.append = COA joinMedia.append { 10 = TEXT 10.value = ZZ_coupon 10.if.isTrue { preUserFunc = tx_p123checkout_pi1->hook preUserFunc { funcName = basket_find dontIncludeSetup = 1 group = ZZ_coupon rKey = count format = 0 } } 10.wrap = , } extensions.stdWrap.outerWrap.cObject.if { value = ZZ_coupon isInList.field = format negate = 1 } } plugin.tx_p123paypal_pi2 { joinMedia < plugin.tx_p123checkout_pi1.joinMedia } plugin.tx_p123checkout_pi4 { paymentHooks.9.joinMedia < plugin.tx_p123checkout_pi1.joinMedia mailTemplate.html.subparts.tx_p123checkout_pi1 { joinMedia.append = COA joinMedia.append { 10 =