# Configuration for the plugin "p123coupon_lib" plugin.tx_p123coupon { templateStdWrap = messageStdWrap = contentStdWrap.wrap = defaultCoupons = specialCoupons = databaseCoupons = _CSS_DEFAULT_STYLE ( .tx-p123coupon {margin-left: 50%; margin-top: 1%; padding: 5px; border: dotted 1px #999999; border-radius: 3px;} .tx-p123coupon-ctrl {height: 20px;} .tx-p123coupon-button {float: right;} .tx-p123coupon-input-text {background: #FFFFFF; border: 1px solid #DBDBDB;} .tx-p123coupon-message.errormsg {color: red;} .tx-p123coupon-message.successmsg {color: green;} .tx-p123coupon-text {padding: 5px 0 5px 0;} @media screen and (max-width: 768px), screen and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2), screen and (max-device-width: 1024px) and (min-resolution: 192dpi), screen and (max-device-width: 1024px) and (min-resolution: 2dppx) { .tx-p123coupon{margin-left: 0;} .tx-p123coupon-ctrl {height: 25px;} .tx-p123coupon-button {font-size: 16px; height: 18px !important; line-height: 19px !important; width: auto !important;} .tx-p123coupon-input-text{font-size: 15px; line-height: 22px;} } @media screen and (max-width: 410px), screen and (max-device-width: 410px) and (-webkit-min-device-pixel-ratio: 2), screen and (max-device-width: 410px) and (min-resolution: 192dpi), screen and (max-device-width: 410px) and (min-resolution: 2dppx) { .tx-p123coupon-ctrl {height: 55px;} #tx-p123coupon-code {width: 100%; margin-bottom: 5px;} } ) } 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 } templateStdWrap { postCObject = FILE postCObject.stdWrap.if.value.data = TSFE:id postCObject.stdWrap.if.equals = {$plugin.tx_p123_pi.pageBasket} postCObject { file = EXT:p123coupon/res/template.html } } } 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 =