#IF(#NewlyCreated)
{ProductTypeSucessfullyAdded}
{ProductTypeSuccessExplanation}
#REM #ENDREM
#ENDIF
#IF(#FormError)
#IF(#FormErrors.Reason.FeatureLimitExceeded)
{Notification}
{CouldNotCreateObject}
{FeatureMaxValueProductTypeAttributes} #Shop.FeatureMaxValue.ProductTypeAttributes
#REM #ENDREM
#ELSIF(#FormErrors.Reason.VariationFeatureMaxValueReached)
{Notification}
{CouldNotCreateObjectVariations}
{FeatureMaxValueVariations} #Shop.FeatureMaxValue.Variations
#REM #ENDREM
#ELSIF(#FormErrors.Reason.ProductsWithThisVariationAttributeExist)
{ProductsWithThisVariationAttributeExist}:
#LOOP(#FormErrors.Reason.ProductsWithThisVariationAttributeExist.Errors)
#IF(#DEFINED(#AttributeName))- #AttributeName
#ENDIF
#ENDLOOP
#REM #ENDREM
#ELSIF(#FormError_ProductTypeName)
{InputError}
{PleaseCorrectErrors}
#REM #ENDREM
#ENDIF
#ENDIF
#IF(#DELETE AND #FormErrors.Reason.ProductsWithThisVariationAttributeExist)
#REM #ENDREM
#SET("DELETE", #COUNT(#DeleteObjects))
#ENDIF
#IF(#DELETE)
{AcceptAction1}
{AcceptAction2}
#REM #ENDREM
#LOOP(#DeleteObjects)
#ENDLOOP
#ELSE
#IF(#COUNT(#UserDefinedAttributes) NGE #Shop.FeatureMaxValue.ProductTypeAttributes)
{Notification}
{FeatureMaxValueReached}
{FeatureMaxValueProductTypeAttributes} #Shop.FeatureMaxValue.ProductTypeAttributes
#REM #ENDREM
#ENDIF
#REM #ENDREM
#SNIPPET("INC-I18n-Tooltip", "AttributeName", "ProductTypeName")
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
{Attributes}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#ENDIF
#REM#ENDREM
#IF(NOT #DELETE)
#SNIPPET("INC-BatchActions", "BatchActions", "BatchActions")
#IF(#FormError AND NOT #FormErrors.Reason.ProductsWithThisVariationAttributeExist AND NOT #FormErrors.Reason.FeatureLimitExceeded AND NOT #FormErrors.Reason.VariationFeatureMaxValueReached AND NOT #FormError_ProductTypeName)
#ENDIF
#ENDIF
#REM#ENDREM
#REM #ENDREM
#REM #ENDREM
#IF(#DELETE)
#ELSE
#ENDIF
#ENDBLOCK