#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}
#ENDIF
#ENDLOOP
#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
#IF(NOT #IsMaster)
#REM #ENDREM
#ENDIF #REM #ENDREM
#LOCAL("ErrorItemNo", 0)
#IF(#DEFINED(#Shop.TaxMethod) AND #GET("System.Child.PageTypes.Child.MBO.Child.DefaultTemplateTypes.Child.INC-".#Shop.TaxMethod.Alias[0]."-TaxClass-Select.ID"))
#LOCAL("IncludeTemplate","INC-".#Shop.TaxMethod.Alias[0]."-TaxClass-Select")
#INCLUDE(#IncludeTemplate)
#ENDLOCAL
#ELSE
#INCLUDE("INC-TaxClass-Select")
#ENDIF
#ENDLOCAL
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#IF(NOT #IsMaster)
{FurtherOptions}
#REM #ENDREM
#REM #ENDREM
#ENDIF
#IF(NOT #IsMaster)
#REM #ENDREM
#ENDIF
#REM #ENDREM
{BubbleHelpUnitsInProduct}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#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
#IF(NOT #IsMaster)
#REM #ENDREM
#ENDIF
#REM #ENDREM
#REM #ENDREM
#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(#SuperProduct OR #COUNT(#SubProducts))
#ELSE
#ENDIF
#ENDLOCAL
#REM #ENDREM
#IF(#COUNT(#UsedSelectionAttributes))
{UnityIsVariationAttribute}
#LOOP(#UsedSelectionAttributes)
#Attribute.NameOrAlias
#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
#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:160,html]#ENDIF
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM