#WITH_ERROR(#FormError) #IF(#INPUT.OrderBy)#ENDIF #IF(#INPUT.OrderDesc)#ENDIF #IF(#FormError AND NOT #FormError.Reason.CustomerGroupExists)

{InputError}

{PleaseCorrectErrors}

#ENDIF #IF(#DELETE)

{AcceptActionCustomerGroups}

#LOOP(#DeleteObjects)#ENDLOOP #ELSE #IF(#FeatureMaxValueReached)

{Notification}

{CouldNotCreateCustomerGroup}
{FeatureMaxValue} #Shop.FeatureMaxValue.CustomerGroups #INCLUDE("FeaturePromotion")
#ELSIF(#Shop.FeatureCurrentValue.CustomerGroups >= #Shop.FeatureMaxValue.CustomerGroups)

{Notification}

{MaxFeatureValueReached}
{FeatureMaxValue} #Shop.FeatureMaxValue.CustomerGroups #INCLUDE("FeaturePromotion")
#ENDIF

{CustomerGroupsNotification}

{CustomerGroupsNotification2} {OpenProducts}

{CustomerGroupsNotificationHelpCenter}

#ENDIF #IF(NOT #DELETE) #SNIPPET("INC-BatchActions", "BatchActions", "BatchActions") #REM #ENDREM #REM #ENDREM #IF(#FormError.Reason.CustomerGroupExists OR #FormErrors.Reason.AliasUsedBySystem) #ENDIF #ENDIF #REM #ENDREM #IF(#DELETE) #LOOP(#DeleteObjects) #ENDLOOP #REM #ENDREM #ELSE #IF(#Shop.FeatureCurrentValue.CustomerGroups < 1) #ELSE #LOOP(#CustomerGroups) #IF(#Alias NE "NewCustomer") #BLOCK("WITH_FORM_ERROR", #FormError) #ENDBLOCK #REM #ENDREM #ENDIF #ENDLOOP #REM #ENDREM #ENDIF #REM #ENDREM #ENDIF #REM #ENDREM
{Name} #INCLUDE("INC-I18n-Tooltip") {Customers}
#NameOrAlias #COUNT(#Members)
{NoCustomerGroupsExists}
#NameOrAlias #COUNT(#Customers)
#IF(#DELETE) #ELSE #ENDIF #REM #ENDREM
#ENDWITH_ERROR