#IF(#IsNewCampaign) #SET("ShopHasMultipleLanguages", 0) #ENDIF
#WITH_ERROR(#FormError)
#IF(#FormError AND NOT #FormError_CouponCode AND NOT #FormError_NumberOfCodes AND NOT #CouponCodeExistsError)

{InputError}

{PleaseCorrectErrors}

#IF(#FormErrors.Reason.OBJECT_EXISTS)

{DoubleObject}

#ENDIF
#REM #ENDREM #ENDIF #IF(#IsNewCampaign) #ELSE #ENDIF #IF(#DELETE)

{AcceptAction}

{AcceptActionInfo}

#REM #ENDREM #ELSE #IF(#DEFINED(#ValidCouponCount) AND #ValidCouponCount NE "" AND #ValidCouponCount==0)

{Notification}

{NoValidCoupons}

#REM #ENDREM #ELSIF(#DEFINED(#ValidCouponCount) AND #ValidCouponCount NE "" AND #RedeemCount==#ValidCouponCount)

{Notification}

{ValidCouponCountReached}

#REM #ENDREM #ENDIF #ENDIF #LOCAL("CampaignCurrencySymbol", "") #IF(#DEFINED(#CurrencyID))#LOCAL("CampaignCurrency", #FUNCTION("CURRENCY", #CurrencyID))#SET("CampaignCurrencySymbol",#CampaignCurrency.Symbol)#ENDLOCAL#ENDIF
#IF(NOT #DELETE)

{General}

#REM #ENDREM
#SNIPPET("INC-I18n-Tooltip", "AttributeName", "Name")
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM

{TypeAndValue}

#REM #ENDREM
#REM #ENDREM
#CampaignCurrencySymbol
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
%
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM

{CouponRestrictions}

#REM #ENDREM
#CampaignCurrencySymbol
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM #ENDIF

{UnityCouponCodes}

#IF(NOT #DELETE) #IF(NOT #IsNewCampaign) #BLOCK("Pager", #CouponCodes) #SNIPPET("INC-PagerHeader", "ContextObjects", "{CouponCodes}") #ENDBLOCK #ENDIF #SNIPPET("INC-BatchActions", "BatchActions", "BatchActions") #REM #ENDREM #REM #ENDREM #IF(#FormError_CouponCode OR #FormError_NumberOfCodes OR #CouponCodeExistsError) #ENDIF #ENDIF #IF(NOT #IsNewCampaign) #BLOCK("Pager", #CouponCodes) #LOCAL("OrderBy",#INPUT.OrderBy)#IF(NOT #DEFINED(#OrderBy))#SET("OrderBy","")#ENDIF #IF(#OrderBy NE "Alias") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#OrderBy NE "RedeemCount") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#OrderBy NE "IsInvalidated") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #ENDLOCAL #IF(#DELETE) #LOOP(#DeleteObjects) #ENDLOOP #ELSE #IF(#COUNT(#Pager.Items)) #LOOP(#Pager.Items) #ENDLOOP #ELSE #ENDIF #ENDIF
{UnityCouponCode}{UnityCouponCode}{UnityCouponCode}{RedeemCount}{RedeemCount}{RedeemCount}{Valid}{Valid}{Valid}
#Alias #RedeemCount[integer]
#Alias #RedeemCount[integer]

{NoCouponCodes} {CouponCodeCreationMessage}

#IF(NOT #DELETE) #SNIPPET("Pager", "ContextObjects", "{CouponCodes}") #ENDIF #ENDBLOCK #ELSE
{UnityCouponCode} {RedeemCount} {Valid}

{NoCouponCodes} {CouponCodeCreationMessage}

#ENDIF
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM #ENDLOCAL
#IF(NOT #DELETE) #ELSE #ENDIF
#ENDWITH_ERROR