#IF(#OBJECT_EXISTS)
{InputError}
{ObjectExists}
#REM #ENDREM
#ELSIF(#FormError)
{InputError}
#IF(#COUNT(#FormErrors.Form.Save.Errors))
#LOOP(#FormErrors.Form.Save.Errors)
#IF(#Reason EQ "SHORTURL_ALREADY_EXISTS")
{SHORTURL_ALREADY_EXISTS}
#ELSIF(#Reason EQ "INVALID_CHARACTER")
{SHORTURL_INVALID_CHARACTER}
#ELSIF(#Reason EQ "NAME_NOT_VALID")
{ProductNameInvalidCharacter}
#ELSIF(#Reason EQ "UNSUPPORTED_FILETYPE")
{NO_MIME}
#ENDIF
#ENDLOOP
#IF(#FormErrors.Reason.STRING_TOO_LONG)
{StringTooLong}
#ENDIF
#ELSE
{PleaseCorrectErrors}
#ENDIF
#REM #ENDREM
#ENDIF
#REM #ENDREM
#IF(#IsNewProduct)
#ELSE
#ENDIF
#IF(#IsVariationProduct)
#ELSE
#ENDIF
#IF(#ShopProductsMaxedOut)
{MaxFeatureValueReached}
{FeatureMaxValue}: #Shop.FeatureMaxValue.Products[integer]
#REM #ENDREM
#ENDIF
#REM #ENDREM
#WITH_ERROR(#FormError)
#IF(NOT #IsMaster)
#REM #ENDREM
#ENDIF
#SNIPPET("INC-WYSIWYG", "Name,InputName,Value,TranslationHead,Help,Translatable,Bootstrap", "DescriptionTranslation", "Description", #Description, "{Description}", "{BubbleHelpLongDescription}",1,1)
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#LOCAL("Context", #_)
#IF(#IsSubProduct)
#SET("Context", #SuperProduct)
#ENDIF
#WITH(#Context)
#REM #ENDREM
#ENDWITH #REM #ENDREM
#ENDLOCAL #REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#IF(NOT #IsMaster)
{FurtherOptions}
#REM #ENDREM
#REM #ENDREM
#ENDIF
#IF(NOT #IsMaster)
#REM #ENDREM
#ENDIF
#IF(NOT #IsMaster OR #IsMaster AND #IsNewProduct)
#REM #ENDREM
{BubbleHelpUnitsInProduct}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#ENDIF
#REM #ENDREM
#REM #ENDREM
#MENU("Visibility")#INCLUDE(#Template)#ENDMENU
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#IF(NOT #IsMaster)
#REM #ENDREM
#ENDIF
#REM #ENDREM
#REM #ENDREM
{FurtherOptions}
#REM #ENDREM
#REM #ENDREM
#IF(#Shop.FeatureMaxValue.ShippingMethodsPerProduct)
{ProductShippingMethods}
{BubbleHelpProductShippingMethods}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#ENDIF
{VolumeExpansion}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
{Manufacturer}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#IF(NOT #IsMaster)
#REM #ENDREM
#ENDIF
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
{BubbleHelpMainCharacteristics}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
{Attributes}
#REM #ENDREM
#REM #ENDREM
#LOCAL("ErrorItemNo", 0)
{BubbleHelpProductType}
#IF(#COUNT(#SubProducts) OR #IsSubProduct)
#ELSE
#ENDIF
#ENDLOCAL
#REM #ENDREM
#IF(#COUNT(#UsedSelectionAttributes))
{UnityIsVariationAttribute}
#LOOP(#UsedSelectionAttributes)
#IF(#IsSubProduct)
#Value.ValueOrAlias
#ELSE
#Attribute.NameOrAlias
#ENDIF
#ENDLOOP
#ENDIF
#IF(#COUNT(#SelectionAttributes) OR #COUNT(#TextAttributes))
#ENDIF
#IF(#COUNT(#TextAttributes))
#LOOP(#TextAttributes)
#WITH_ERROR(#FormError)
#LOCAL("ErrorItemNo", 0)
#LOCAL("InputName","UserDefined_".#Attribute.Alias)
#ENDLOCAL
#ENDLOCAL
#ENDWITH_ERROR
#ENDLOOP
#ENDIF
#IF(#COUNT(#SelectionAttributes))
#LOOP(#SelectionAttributes)
#WITH_ERROR(#FormError)
#LOCAL("ErrorItemNo", 0)
#LOCAL("InputName","UserDefined_".#Attribute.Alias)
#ENDLOCAL
#ENDLOCAL
#ENDWITH_ERROR
#ENDLOOP
#ENDIF
#REM #ENDREM
#REM #ENDREM
#IF(NOT #Shop.FeatureMaxValue.eCMS)
#REM #ENDREM
{SearchEngineEntry}
#REM #ENDREM
#REM #ENDREM
#IF(#IsNewProduct)#Shop.Name[substr:0:70,html]#ELSE#DisplayTitle[substr:0:70,html]#ENDIF
#IF(NOT #IsNewProduct AND #WebUrlPrettyUnitySSL AND #AltLanguageID == #LanguageID)#WebUrlPrettyUnitySSL#ELSE#AddLanguageToUnitySfURL(#WebUrlUnitySSL, #INPUT.AltLanguageID, #LanguageID)#ENDIF
#IF(#Text)#Text[substr:0:320,html]#ENDIF
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#ENDIF #REM #ENDREM
#REM #ENDREM