#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)
#ELSE
#ENDIF
#ENDBLOCK