#LOCAL("AltLanguageID", #INPUT.AltLanguageID) #IF((#DEFINED(#INPUT.AltLanguageID))AND(#DEFINED(#INPUT.LanguageID)))#IF(#INPUT.AltLanguageID EQ #INPUT.LanguageID)#SET("AltLanguageID", 0)#ENDIF#ENDIF #LOOP(#Shop.Languages) #IF(NOT #AltLanguageID AND #Code2 NE #INPUT.Language) #SET("AltLanguageID", #LanguageID) #ENDIF #ENDLOOP
#BLOCK("WITH_FORM_ERROR", #FormError)
{CommerceAttributes} {Description} {Attributes}
#IF(#INPUT.NEW_VARIATIONPRODUCT) #ENDIF #IF(#OBJECT_EXISTS)

{InputError}

{ObjectExists}
#ELSIF(#FormError) #LOCAL("CommonError", 1)
#IF(#COUNT(#FormErrors.Form.Delete.Errors)) #LOOP(#FormErrors.Form.Delete.Errors) #IF(#Reason EQ "DeleteProductStillBundled")#SET("CommonError", 0)

{Notification}

{DeleteProductStillBundled} #ENDIF #ENDLOOP #ELSIF(#COUNT(#FormErrors.Form.SaveAppointment.Errors)) #LOOP(#FormErrors.Form.SaveAppointment.Errors) #IF(#Reason EQ "FLOAT_TOO_LARGE")#SET("CommonError", 0)

{InputError}

{MaxStockLevelAppointment} #ELSIF(#Reason EQ "WrongMinOrderOrStockLevel")#SET("CommonError", 0)

{InputError}

{WrongMinOrderOrStockLevel} #ENDIF #ENDLOOP #ELSIF(#COUNT(#FormErrors.Form.Save.Errors)) #LOOP(#FormErrors.Form.Save.Errors) #IF(#Reason EQ "SHORTURL_ALREADY_EXISTS")#SET("CommonError", 0)

{InputError}

{SHORTURL_ALREADY_EXISTS} #ELSIF(#Reason EQ "INVALID_CHARACTER")#SET("CommonError", 0)

{InputError}

{SHORTURL_INVALID_CHARACTER} #ELSIF(#Reason EQ "MissingEcoParticipationCategory")#SET("CommonError", 0)

{InputError}

{MissingEcoParticipationCategory} #ENDIF #ENDLOOP #ENDIF #IF(#CommonError)

{InputError}

{PleaseCorrectErrors} #ENDIF
#ENDLOCAL #ENDIF #IF(#DELETE)

{Warning}

{AcceptAction}
#ENDIF
#IF((NOT #DELETE) AND (NOT #SuperProduct) AND (#IsVisible) AND (#DEFINED(#StockLevel)) AND (#StockLevel <= 0) AND (#Shop.ProductLowOnStockAction == 3))

{StockLevel}: #StockLevel[float] #OrderUnit.Name - {StockLevelSettingsInfo}

{StockLevelSettingsInfoText}
#ENDIF
#INCLUDE("INC-MainNames")


#INCLUDE("INC-Product-Prices")
#INCLUDE("INC-TaxClass-Select") #INCLUDE("INC-Product-UnitSettings")
#INCLUDE("INC-Product-ManufacturerSettings")
#INCLUDE("INC-Product-StockSettings")
#INCLUDE("INC-Product-DeliverySettings")
#IF(#FormError)
#ENDIF

#INCLUDE("LanguageSelect") #INCLUDE("INC-MainTexts")
#INCLUDE("INC-Product-Keywords")
#INCLUDE("INC-Product-Flags") #IF(#FormError)
#ENDIF

#INCLUDE("INC-Product-Attributes") #LOCAL("HasGoogleProductCategory", 0) #LOOP(#UserDefinedAttributeValues) #IF(#Attribute.Alias EQ "Google_Product_Category") #SET("HasGoogleProductCategory", 1) #ENDIF #ENDLOOP #IF(#HasGoogleProductCategory)

{TipsAndTricks}

#ENDIF #ENDLOCAL
#IF(#DELETE) #IF(#SuperProduct) #ELSE #ENDIF #ELSE #IF(#INPUT.NEW_VARIATIONPRODUCT) #ELSE #ENDIF #IF(#INPUT.PopUp) #ELSE #IF(#Session.User.DeleteConfirmation) #ELSE #IF(#SuperProduct) #ELSE #ENDIF #ENDIF #ENDIF #ENDIF
#ENDBLOCK #ENDLOCAL {MandatoryFields}