{ProductTypes} #NameOrAlias

#BLOCK("WITH_FORM_ERROR", #FormError)
#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

{General}

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

{Attributes}

#REM #ENDREM
#REM #ENDREM
#LOCAL("HelpCenterUrl", #HelpCenterUrl(#Session.User.Object))

{ProductAttributeInfoText} {UnityOpenHelpCenterLink}

#ENDLOCAL
#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 #IF(#DELETE) #LOOP(#DeleteObjects) #ENDLOOP #ELSE #LOCAL("ProductTypeID", #ID) #IF(#COUNT(#UserDefinedAttributes)) #LOOP(#UserDefinedAttributes) #ENDLOOP #ELSE #ENDIF #ENDLOCAL #ENDIF
{Name} {Type} {Position}

#NameOrAlias #IF(NOT #DEFINED(#Type)) {UnknownType} #ELSE #IF(#Type EQ "LocalizedString") {Text} #ELSIF(#Type EQ "PreDefLocalizedString") {PreDefString} #ENDIF #ENDIF #LOCAL("IsNotVisibleStatus",0) #IF(NOT #IsVisible) #SET("IsNotVisibleStatus",1) #ENDIF #SNIPPET("INC-Status", "IsNotVisible",#IsNotVisibleStatus) #ENDLOCAL #Position
#NameOrAlias #IF(#Type EQ "PreDefLocalizedString") (#COUNT(#PreDefAttributes) {Values}) #ENDIF #IF(NOT #DEFINED(#Type)) {UnknownType} #ELSE #IF(#Type EQ "LocalizedString") {Text} #ELSIF(#Type EQ "PreDefLocalizedString") {PreDefString} #ENDIF #ENDIF #LOCAL("IsNotVisibleStatus",0) #IF(NOT #IsVisible) #SET("IsNotVisibleStatus",1) #ENDIF #SNIPPET("INC-Status", "IsNotVisible",#IsNotVisibleStatus) #ENDLOCAL #IF(#DEFINED(#AttributeClass.ID) AND #DEFINED(#ProductTypeID) AND #AttributeClass.ID NEQ #ProductTypeID) #BLOCK("WITH_FORM_ERROR", #FormError) #ENDBLOCK #ENDIF
{EmptyAttributeTableMessage}
#REM #ENDREM
#REM #ENDREM
#IF(#DELETE) #ELSE #ENDIF
#ENDBLOCK
#IF(NOT #DELETE) #ENDIF