{Coupon}: #IF(NOT #DEFINED(#CouponCode))

{NoCouponCodeAtLineItem}

#ELSE #CouponCode.CouponCampaign.NameOrAlias #IF(#CouponCode.CouponCampaign.Type EQ "FIX") ({Value}: #CouponCode.CouponCampaign.Value[money]) #ELSIF(#CouponCode.CouponCampaign.Type EQ "PERCENT") ({Value}: #CouponCode.CouponCampaign.Value %) #ELSIF(#CouponCode.CouponCampaign.Type EQ "SHIPPING") ({FreeShipping}) #ENDIF #ENDIF #LOOP(#ValidationErrors)
#IF(#Message EQ "LineItemsSubTotalTooSmall") #LOCAL("MinOrderAmout",#CouponCode.CouponCampaign.MinLineItemsSubTotal[money]) {LineItemsSubTotalTooSmall} #ENDLOCAL #ELSIF(#Message EQ "CouponIsInvalidated") {CouponIsInvalidated} #ELSIF(#Message EQ "ValidCouponCountReached") {ValidCouponCountReached} #ELSIF(#Message EQ "CouponNotEffective") {CouponNotEffective} #ELSIF(#Message EQ "PaymentMethodMisMatch") {PaymentMethodMisMatch} #ELSIF(#Message EQ "ShippingMethodMisMatch") {ShippingMethodMisMatch} #ELSIF(#Message EQ "ProductMisMatch") {ProductMisMatch} #ENDIF
#ENDLOOP #IF(#LineItemPrice)#LineItemPrice[money]#ENDIF #SET("Alternate", 1 - #Alternate)