#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)
#REM #ENDREM
#SNIPPET("INC-WYSIWYG", "Name,InputName,Value,TranslationHead,Help,Translatable,Bootstrap", "DescriptionTranslation", "Description", #Description, "{Description}", "{BubbleHelpLongDescription}",1,1)
#REM #ENDREM
#IF(#Shop.FeatureMaxValue.ProductAIOptimisation)
#REM #ENDREM
#IF(#IsNewProduct)
#ELSE
#IF(#DEFINED(#Description))
{BubbleHelpAIDescriptionOptimization}
#ELSE
{BubbleHelpAIDescriptionGeneration}
#ENDIF
#ENDIF
#REM #ENDREM
#REM #ENDREM
#ENDIF
#REM #ENDREM
{BubbleHelpIsNew1}
{BubbleHelpIsNew3}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#LOCAL("Context", #_)
#IF(#IsSubProduct AND NOT #TaxClass)
#SET("Context", #SuperProduct)
#ENDIF
#WITH(#Context)
#REM #ENDREM
#ENDWITH #REM #ENDREM
#ENDLOCAL #REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#LOCAL("ManufacturerPrice", #ManufacturerPrice)
#IF(NOT #IsNewProduct)
#SET("ManufacturerPrice", #MANUFACTURERPRICE(#Object, #ShopCurrencyID, #Shop.InputTaxModel,#UNDEF, 1))
#ENDIF
{FurtherOptions}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
{BubbleHelpUnitsInProduct}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#LOCAL("Price", #Price)
#IF(NOT #IsNewProduct)
#SET("Price", #LISTPRICE(#Object, #ShopCurrencyID, #Shop.InputTaxModel, 1))
#ENDIF
#IF(#DEFINED(#ManufacturerPrice) AND #ManufacturerPrice != 0 AND #DEFINED(#Price))
#SET("PricePercent", #CALCULATE((100 - (100 * #Price / #ManufacturerPrice))) * -1)
#ManufacturerPrice[money_plain] #ShopCurrencySymbol
#PricePercent[integer] %
#ENDIF
#IF(#DEFINED(#Price))#Price[money_plain] #ShopCurrencySymbol#ENDIF
#IF(#TaxClass != 0)
#IF(#Shop.TaxModel == 1)
{IsGross}
#ELSE
{IsNet}
#ENDIF
,
#ENDIF
#IF(#IsShippingLinkVisible){WithoutShipping}#ENDIF
#LOCAL("LocalOrderUnitId", #FUNCTION("ERROR_VALUE", #OrderUnit, #OrderUnit.ID))
#ENDLOCAL
#REM #ENDREM
#REM #ENDREM
#ENDLOCAL #REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#ENDLOCAL #REM #ENDREM
#REM #ENDREM
#MENU("Visibility")#INCLUDE(#Template)#ENDMENU
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#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
#REM #ENDREM
{Manufacturer}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
#IF(#Shop.FeatureMaxValue.ProductCustomization)
#REM #ENDREM
{CustomizableProduct}
#REM #ENDREM
#REM #ENDREM
{CustomizableProductBubbleHelp}
#REM #ENDREM
#REM #ENDREM
#REM #ENDREM
{CustomizableTextLengthBubbleHelp}
#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
#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
{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