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