#BLOCK("WITH_FORM_ERROR", #FormError)
#IF(#FormError)

{InputError}

#IF(#OBJECT_EXISTS) {DoubleObject} #ELSIF(#FormErrors.Reason.ProductsWithThisVariationAttributeExist) {ProductsWithThisVariationAttributeExist} #ELSIF(#FormErrors.Reason.ProductAttributeExists) {ProductAttributeExists} #ELSIF(#FormErrors.Reason.ProductAttributeExistsInOtherProductClass) {ProductAttributeExistsInOtherProductClass} #ELSIF(#FormErrors.Reason.AliasWithUmlauts) {AliasWithUmlauts} #ELSIF(#FormErrors.Reason.AliasReserved) {AliasReserved} #ELSIF(#COUNT(#UserDefinedAttributes) NGE #Shop.FeatureMaxValue.ProductTypeAttributes) {FeatureMaxValueReached} #ELSE {PleaseCorrectErrors} #ENDIF
#ENDIF #SET("PREDEFCOUNT",0) #LOOP(#UserDefinedAttributes) #IF(#DEFINED(#PREDEFCOUNT) AND #DEFINED(#Type) AND (#Type EQ "PreDefString" OR #Type EQ "PreDefLocalizedString")) #SET("PREDEFCOUNT",#PREDEFCOUNT +1) #ENDIF #ENDLOOP #IF(#DELETE)

{Warning}

{AcceptAction}
#LOOP(#DeleteObjects)#ENDLOOP #ELSE #IF(#COUNT(#UserDefinedAttributes) NGE #Shop.FeatureMaxValue.ProductTypeAttributes)

{Notification}

{FeatureMaxValueReached}
{FeatureMaxValueProductTypeAttributes} #Shop.FeatureMaxValue.ProductTypeAttributes #INCLUDE("FeaturePromotion")
#ENDIF #IF(#FormError) #IF(#FormErrors.Reason.FeatureLimitExceeded)

{Notification}

{CouldNotCreateObject}
{FeatureMaxValueProductTypeAttributes} #Shop.FeatureMaxValue.ProductTypeAttributes #INCLUDE("FeaturePromotion")
#ENDIF #IF(#FormErrors.Reason.VariationFeatureMaxValueReached)

{Notification}

{CouldNotCreateObjectVariations}
{FeatureMaxValueVariations} #Shop.FeatureMaxValue.Variations #INCLUDE("FeaturePromotion")
#ELSIF(#DEFINED(#PREDEFCOUNT)) #IF(#PREDEFCOUNT NGE #Shop.FeatureMaxValue.Variations)

{Notification}

{VariationFeatureMaxValueReached}
{FeatureMaxValueVariations} #Shop.FeatureMaxValue.Variations #INCLUDE("FeaturePromotion")
#ENDIF #ENDIF #ENDIF #ENDIF #IF(#DELETE) #LOOP(#DeleteObjects) #ENDLOOP #ELSE #LOCAL("ProductTypeID", #ID) #LOOP(#UserDefinedAttributes) #ENDLOOP #ENDLOCAL #ENDIF
{Alias} {Name} {Type} {Visible} {Position}
#Alias #Name #IF(NOT #DEFINED(#Type))#SET("Type","undefined")#ENDIF #IF(#Type EQ "String"){Text} #ELSIF(#Type EQ "PreDefString"){PreDefString} #ELSIF(#Type EQ "LocalizedString"){LocalizedString} #ELSIF(#Type EQ "PreDefLocalizedString"){PreDefLocalizedString} #ELSIF(#Type EQ "PreDefMultiString"){PreDefMultiString} #ELSIF(#Type EQ "PreDefMultiLocalizedString"){PreDefMultiLocalizedString} #ELSIF(#Type EQ "PreDefCustomerString"){Options} #ELSIF(#Type EQ "Integer"){Integer} #ELSIF(#Type EQ "Float"){Float} #ELSIF(#Type EQ "Boolean"){yes}/{no} #ELSIF(#Type EQ "Money"){Money} #ELSIF(#Type EQ "DateTime"){DateTime} #ELSIF(#Type EQ "Date"){Date} #ELSIF(#Type EQ "Time"){Time} #ELSIF(#Type EQ "File"){File} #ELSIF(#Type EQ "LocalizedFile"){LocalizedFile} #ELSE {UnknownType} #Type #ENDIF #Position
#Alias #Name #IF(NOT #DEFINED(#Type))#SET("Type","undefined")#ENDIF #IF(#Type EQ "String"){Text} #ELSIF(#Type EQ "PreDefString"){PreDefString} #ELSIF(#Type EQ "LocalizedString"){LocalizedString} #ELSIF(#Type EQ "PreDefLocalizedString"){PreDefLocalizedString} #ELSIF(#Type EQ "PreDefMultiString"){PreDefMultiString} #ELSIF(#Type EQ "PreDefMultiLocalizedString"){PreDefMultiLocalizedString} #ELSIF(#Type EQ "PreDefCustomerString"){Options} #ELSIF(#Type EQ "Integer"){Integer} #ELSIF(#Type EQ "Float"){Float} #ELSIF(#Type EQ "Boolean"){yes}/{no} #ELSIF(#Type EQ "Money"){Money} #ELSIF(#Type EQ "DateTime"){DateTime} #ELSIF(#Type EQ "Date"){Date} #ELSIF(#Type EQ "Time"){Time} #ELSIF(#Type EQ "File"){File} #ELSIF(#Type EQ "LocalizedFile"){LocalizedFile} #ELSE {UnknownType} #Type #ENDIF #IF(#DEFINED(#AttributeClass.ID) AND #DEFINED(#ProductTypeID) AND #AttributeClass.ID NEQ #ProductTypeID) #BLOCK("WITH_FORM_ERROR", #FormError) #ENDBLOCK #ENDIF
#LOOP(#Shop.Languages) #IF(#DEFINED(#INPUT.Language) AND #INPUT.Language EQ #Code2) #ENDIF #ENDLOOP #LOCAL("DefaultTypePackage", "")#IF(#DEFINED(#INPUT.DefaultTypePackage)) #SET("DefaultTypePackage",#INPUT.DefaultTypePackage)#ENDIF #ENDLOCAL #IF(#FormError) #ENDIF
#IF(#DELETE) #ELSE #ENDIF
#ENDBLOCK