#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} {DurationRespitesAttributes} {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)

{AcceptAction}

{AcceptActionInfo}

#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")
#LOCAL("DurationUnitID", #DurationUnit.ID) #IF(#FormError)#SET("DurationUnitID", #DurationUnit)#ENDIF #IF(NOT #DEFINED(#DurationUnitID))#SET("DurationUnitID", #Calendar.DurationUnit.ID)#ENDIF #IF(NOT #DEFINED(#DurationUnitID))#SET("DurationUnitID", #Calendar.BaseCalendar.DurationUnit.ID)#ENDIF #LOCAL("DurationAmount", #DurationAmount) #IF(NOT #DEFINED(#DurationAmount))#SET("DurationAmount", #Calendar.DurationAmount)#ENDIF #IF(NOT #DEFINED(#DurationAmount))#SET("DurationAmount", #Calendar.BaseCalendar.DurationAmount)#ENDIF #ENDLOCAL#ENDLOCAL #IF(#Shop.FeatureMaxValue.Basket) #LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, "Basket")) #IF(#DisplayFeature NE "NotAllowed" OR #DisplayFeature NE "NotVisible") #LOCAL("CanPayAppointment", #CanPayAppointment.ID) #IF(#FormError)#SET("CanPayAppointment", #CanPayAppointment)#ENDIF
{DurationUnit} #IF(#DurationUnitID) #ENDIF


{CanPayAppointment}
 {Prepayment}
{FixValue}
#LOOP(#Shop.Currencies) #LOCAL("Prepayment", #FUNCTION("PREPAYMENT", #Object, #CurrencyID, #Shop.InputTaxModel, 1))
#Currency.Symbol
#ENDLOCAL #ENDLOOP
{PercentValue}
%
#ENDLOCAL #ENDIF #ENDLOCAL #ENDIF #INCLUDE("INC-Product-UnitSettings")
#INCLUDE("INC-Product-StockSettings")
{DisplayManufacturerData}
#IF(#FormError)
#ENDIF
#LOCAL("Calendar", #BusinessHours) #LOCAL("AppDurationUnitID", #AppDurationUnit) #IF(NOT #DEFINED(#AppDurationUnitID))#SET("AppDurationUnitID", #Calendar.AppDurationUnit.ID)#ENDIF #IF(NOT #DEFINED(#AppDurationUnitID))#SET("AppDurationUnitID", #Calendar.BaseCalendar.AppDurationUnit.ID)#ENDIF #LOCAL("AppDurationAmount", #AppDurationAmount) #IF(NOT #DEFINED(#AppDurationAmount))#SET("AppDurationAmount", #Calendar.AppDurationAmount)#ENDIF #IF(NOT #DEFINED(#AppDurationAmount))#SET("AppDurationAmount", #Calendar.BaseCalendar.AppDurationAmount)#ENDIF #ENDLOCAL#ENDLOCAL #LOCAL("CanCustomerDefinedAppDuration", #CanCustomerDefinedAppDuration) #IF(NOT #DEFINED(#CanCustomerDefinedAppDuration))#SET("CanCustomerDefinedAppDuration", #Calendar.CanCustomerDefinedAppDuration)#ENDIF #ENDLOCAL #LOCAL("AppointmentInterval", #AppointmentInterval) #IF(NOT #DEFINED(#AppointmentInterval))#SET("AppointmentInterval", #Calendar.AppointmentInterval)#ENDIF #IF(NOT #DEFINED(#AppointmentInterval))#SET("AppointmentInterval", #Calendar.BaseCalendar.AppointmentInterval)#ENDIF #IF(NOT #DEFINED(#AppointmentInterval))#SET("AppointmentInterval", 30)#ENDIF #ENDLOCAL #LOCAL("OnlyBookingPeriod", #OnlyBookingPeriod) #IF(NOT #DEFINED(#OnlyBookingPeriod))#SET("OnlyBookingPeriod", #Calendar.OnlyBookingPeriod)#ENDIF #ENDLOCAL #SNIPPET("INC-Appointment-LastBooking") #SNIPPET("INC-Appointment-LastCancel") #LOCAL("AcceptWithReservation", #AcceptWithReservation) #IF(NOT #DEFINED(#AcceptWithReservation))#SET("AcceptWithReservation", #Calendar.AcceptWithReservation)#ENDIF #ENDLOCAL
{Duration} #IF(#AppDurationUnitID) #ENDIF {DurationExplain}
{CanCustomerDefinedAppDuration} {CanCustomerDefinedAppDurationExplain}

{AppointmentIntervalQuestion}

{AppointmentIntervalExplain}

{Example}

{AppointmentIntervalExample1}

{AppointmentInterval} {Minutes}

{OnlyBookingPeriod}

{OnlyBookingPeriodExplain}

{Examples}

{OnlyBookingPeriodExample1}

{OnlyBookingPeriodExample2}





{AcceptWithReservation}
#ENDLOCAL #IF(#FormError)
#ENDIF

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

#INCLUDE("INC-Product-Attributes")
#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}