#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")
#IF(#FormError)
#ENDIF
#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)
#ENDIF
#ENDLOCAL