#LOCAL("TemplateAlias", #TemplateTypeAlias(#ID)) #LOCAL("CurrencyID", #INPUT.Currency) #LOCAL("NoFromPrice",1)#IF(#IsMaster)#SET("NoFromPrice",0)#ELSE#SET("NoFromPrice",1)#ENDIF #LOCAL("DisplayPrice", #FUNCTION("DISPLAYPRICE", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object,#NoFromPrice)) #LOCAL("ManufacturerPrice", #FUNCTION("MANUFACTURERPRICE", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object)) #LOCAL("ImgPosition","top") #LOCAL("ImgFormat","horizontal") #REM#ENDREM #IF(#TemplateAlias EQ "ImageLeft_New" OR #TemplateAlias EQ "ImageUprightLeft_New") #SET("ImgPosition","left") #SET("ImgFormat", "square") #ENDIF #REM#ENDREM #IF(#TemplateAlias EQ "ImageRight_New" OR #TemplateAlias EQ "ImageUprightRight_New") #SET("ImgPosition","right") #SET("ImgFormat", "square") #ENDIF #REM#ENDREM #IF(#TemplateAlias EQ "ImageUprightLeft_New" OR #TemplateAlias EQ "ImageUprightRight_New") #SET("ImgFormat","vertical") #ENDIF #REM #LOCAL("ShowAvailibilityNotification", 1) #ENDREM #IF(#FormError AND NOT #FormErrors.Form.Login.ErrorCount)

#IF(#FormError_Quantity){EnterValidValue} #ELSE#LOOP(#FormErrors.Reasons)#IF(#Reason EQ "ProductNotVisible") {ProductNotVisible}#ELSIF(#Reason EQ "ProductNoTaxClass") {ProductNoTaxClass}#ELSIF(#Reason EQ "ProductNoPrice") {ProductNoPrice}#ELSIF(#Reason EQ "SUBPRODUCT_NOT_EXISTS") {SubProductNotExists}#ELSIF(#Reason EQ "NoShipping") {NoShipping}#ELSIF(#Reason EQ "ExclusiveShippingMethod") {ExclusiveShippingMethod}#ELSIF(#Reason EQ "NoPayment") {NoPayment}#ELSIF(#Reason EQ "ProductCanNotAddToBasket") {ProductCanNotAddToBasket}#ELSIF(#Reason EQ "ProductCanNotChangedAtBasket") {ProductCanNotChangedAtBasket}#ELSIF(#Reason EQ "LoginRequired2Order") {AddToBasketNotAllowedForUnregistered}#ELSIF(#Reason EQ "LoginRequired2InstantlyOrder") {AddToBasketNotAllowedForAccount} #ELSIF(#Reason EQ "ReachMaxBasketPositions")

{ReachedMaxBasketPositions}

{ReachedMaxBasketPositionsInfo}

#ELSE {UnknownError} ({Error}: #Reason) #ENDIF #ENDLOOP #ENDIF

#ENDIF #REM#ENDREM #IF(#TemplateAlias EQ "ImageBroad_New" OR #TemplateAlias EQ "CoverFlow_Color1_New" OR #TemplateAlias EQ "CoverFlow_Color2_New")
#MENU("Content-TitleBox")#INCLUDE(#Template)#ENDMENU #REM #ENDREM #IF(NOT #DEFINED(#ItemNo) AND NOT #IsAvailable)

#INCLUDE("SF.INC-EmailNotificationDialog")

#ENDIF #REM #ENDREM #IF(#TemplateAlias EQ "ImageBroad_New") #REM #ENDREM #LOCAL("Object",#_) #IF(#DEFINED(#FromSearch) AND #IsMaster)#SET("Object",#SearchFoundObject)#ENDIF #WITH(#Object) #IF(#ImageMedium OR #ImageLarge OR (#UseSlideshow AND #Shop.FeatureMaxValue.ProductSlideShow))
#INCLUDE("Image")
#ENDIF #ENDWITH #ENDLOCAL #ELSIF(#TemplateAlias EQ "CoverFlow_Color1_New")
#REM #ENDREM #LOCAL("Object",#_) #IF(#DEFINED(#FromSearch) AND #IsMaster)#SET("Object",#SearchFoundObject)#ENDIF #WITH(#Object) #IF(#ImageMedium OR #ImageLarge OR (#UseSlideshow AND #Shop.FeatureMaxValue.ProductSlideShow))
#IF(#UseSlideshow AND #Shop.FeatureMaxValue.ProductSlideShow) #LOOP(#ImagesSlideShow) #NameOrAlias[nohtml,html,js] #ENDLOOP #ELSE #NameOrAlias[nohtml,html,js] #ENDIF
#ENDIF #ENDWITH #ENDLOCAL
#ELSIF(#TemplateAlias EQ "CoverFlow_Color2_New")
#REM #ENDREM #LOCAL("Object",#_) #IF(#DEFINED(#FromSearch) AND #IsMaster)#SET("Object",#SearchFoundObject)#ENDIF #WITH(#Object) #IF(#ImageMedium OR #ImageLarge OR (#UseSlideshow AND #Shop.FeatureMaxValue.ProductSlideShow))
#IF(#UseSlideshow AND #Shop.FeatureMaxValue.ProductSlideShow) #LOOP(#ImagesSlideShow) #NameOrAlias[nohtml,html,js] #ENDLOOP #ELSE #NameOrAlias[nohtml,html,js] #ENDIF
#ENDIF #ENDWITH #ENDLOCAL
#ENDIF
#MENU("Content-AdditionalButtons-New")#INCLUDE(#Template)#ENDMENU
#REM#ENDREM #INCLUDE("INC-DownloadPreview")
#IF(#DEFINED(#ManufacturerPrice))
#Shop.ReferencePriceText[0] #IF(#Shop.CancelReferencePrice)#ManufacturerPrice[money]#ELSE #ManufacturerPrice[money]#ENDIF
#ENDIF #IF(#DEFINED(#DisplayPrice))
#IF(#IsBundleProduct) {Price} #SNIPPET("INC-DisplayPrice", "IsProductDetail", "1") #ELSE #SNIPPET("INC-DisplayPrice", "IsProductDetail", "1") #ENDIF
#IF(#DEFINED(#ManufacturerPrice) AND #DisplayPrice < #ManufacturerPrice AND #DisplayPrice > 0) #LOCAL("PriceSavings", #PRICESAVINGS(#Object, #DisplayPrice, #ManufacturerPrice)) #IF(#DEFINED(#PriceSavings))
{YouSaving} #PriceSavings
#ENDIF #ENDLOCAL #ENDIF #IF(#Shop.PriceTagInfoSingleProductGross OR #Shop.PriceTagInfoSingleProductNet)
#IF(#FUNCTION("DISPLAYPRICETAGINFOGROSS", #Object, #Shop.TaxModel, #Session.User.Object)) #IF(#IsAppointment)#Shop.PriceTagInfoSingleResourceGross[0]#ELSE#Shop.PriceTagInfoSingleProductGross[0]#ENDIF #ELSE #IF(#IsAppointment)#Shop.PriceTagInfoSingleResourceNet[0]#ELSE#Shop.PriceTagInfoSingleProductNet[0]#ENDIF #ENDIF
#ENDIF #IF(#DisplayDeliveryWeight AND #Weight)
{Weight}: #Weight[float] #WeightUnit.Abbreviation
#ENDIF #LOCAL("PriceDeposit", #FUNCTION("DEPOSIT", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object)) #LOCAL("PriceEcoParticipation", #FUNCTION("ECOPARTICIPATION", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object)) #IF(#PriceDeposit)#LOCAL("DepositTotalAmount", #CALCULATE(#PriceDeposit + #DisplayPrice))
+ {Deposit} #PriceDeposit[money]#IF(NOT #PriceEcoParticipation)
{LineItemPriceLong} #DepositTotalAmount[money]#ENDIF
#ENDLOCAL#ENDIF #IF(#PriceEcoParticipation)#LOCAL("EcoTotalAmount", #CALCULATE(#PriceEcoParticipation + #DisplayPrice))
+ {EcoParticipation} #PriceEcoParticipation[money] #IF(#PriceDeposit)#SET("EcoTotalAmount", #CALCULATE(#EcoTotalAmount + #PriceDeposit))
{LineItemPriceLong} #EcoTotalAmount[money] #ELSE{LineItemPriceLong} #EcoTotalAmount[money]#ENDIF
#ENDLOCAL#ENDIF #ENDLOCAL #ENDLOCAL #ENDIF #IF(#IsBundleProduct AND #DEFINED(#DisplayPrice)) #IF(#COUNT(#BundledProducts)) #LOCAL("BundledListPriceSum",#FUNCTION("BUNDLEDLISTPRICESUM", #Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object)) #IF(#BundledListPriceSum)
{BundledProductPrices} #BundledListPriceSum[money]
#ENDIF #IF(#DisplayPrice < #BundledListPriceSum AND #DisplayPrice > 0) #LOCAL("Saving", #PRICESAVINGS(#Object, #DisplayPrice, #BundledListPriceSum)) #IF(#DEFINED(#Saving))
{YouSaving} #Saving[money]
#ENDIF #ENDLOCAL #ENDIF #ENDLOCAL #ENDIF #ENDIF #LOCAL("ReferencePrice",#FUNCTION("REFERENCEPRICE", #Object, #DisplayPrice, #INPUT.Currency))#IF(#DEFINED(#ReferencePrice) AND #DEFINED(#DisplayPrice) AND #ReferencePrice != #DisplayPrice)
#RefAmount #IF(#DEFINED(#RefUnit.Abbreviation))#RefUnit.Abbreviation#ELSE#RefUnit.NameOrAlias#ENDIF = #ReferencePrice[money]
#ENDIF #ENDLOCAL #MENU("Content-PriceBox")#INCLUDE(#Template)#ENDMENU
#REM offer end #ENDREM
#REM #ENDREM
#ELSE #REM#ENDREM
#REM#ENDREM #MENU("Content-TitleBox")#INCLUDE(#Template)#ENDMENU #INCLUDE("INC-DownloadPreview") #REM #ENDREM #IF(NOT #DEFINED(#ItemNo) AND NOT #IsAvailable) #INCLUDE("SF.INC-EmailNotificationDialog") #ENDIF #REM #ENDREM
#IF(#DEFINED(#ManufacturerPrice))
#Shop.ReferencePriceText[0] #IF(#Shop.CancelReferencePrice)#ManufacturerPrice[money]#ELSE #ManufacturerPrice[money]#ENDIF
#ENDIF #IF(#DEFINED(#DisplayPrice))
#IF(#IsBundleProduct) {Price} #SNIPPET("INC-DisplayPrice", "IsProductDetail", "1") #ELSE #SNIPPET("INC-DisplayPrice", "IsProductDetail", "1") #ENDIF
#IF(#DEFINED(#ManufacturerPrice) AND #DisplayPrice < #ManufacturerPrice AND #DisplayPrice > 0) #LOCAL("PriceSavings", #PRICESAVINGS(#Object, #DisplayPrice, #ManufacturerPrice)) #IF(#DEFINED(#PriceSavings))
{YouSaving} #PriceSavings
#ENDIF #ENDLOCAL #ENDIF #IF(#Shop.PriceTagInfoSingleProductGross OR #Shop.PriceTagInfoSingleProductNet)
#IF(#FUNCTION("DISPLAYPRICETAGINFOGROSS", #Object, #Shop.TaxModel, #Session.User.Object)) #IF(#IsAppointment)#Shop.PriceTagInfoSingleResourceGross[0]#ELSE#Shop.PriceTagInfoSingleProductGross[0]#ENDIF #ELSE #IF(#IsAppointment)#Shop.PriceTagInfoSingleResourceNet[0]#ELSE#Shop.PriceTagInfoSingleProductNet[0]#ENDIF #ENDIF
#ENDIF #IF(#DisplayDeliveryWeight AND #Weight)
{Weight}: #Weight[float] #WeightUnit.Abbreviation
#ENDIF #LOCAL("PriceDeposit", #FUNCTION("DEPOSIT", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object)) #LOCAL("PriceEcoParticipation", #FUNCTION("ECOPARTICIPATION", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object)) #IF(#PriceDeposit)#LOCAL("DepositTotalAmount", #CALCULATE(#PriceDeposit + #DisplayPrice))
+ {Deposit} #PriceDeposit[money]#IF(NOT #PriceEcoParticipation)
{LineItemPriceLong} #DepositTotalAmount[money]#ENDIF
#ENDLOCAL#ENDIF #IF(#PriceEcoParticipation)#LOCAL("EcoTotalAmount", #CALCULATE(#PriceEcoParticipation + #DisplayPrice))
+ {EcoParticipation} #PriceEcoParticipation[money] #IF(#PriceDeposit)#SET("EcoTotalAmount", #CALCULATE(#EcoTotalAmount + #PriceDeposit))
{LineItemPriceLong} #EcoTotalAmount[money] #ELSE{LineItemPriceLong} #EcoTotalAmount[money]#ENDIF
#ENDLOCAL#ENDIF #ENDLOCAL #ENDLOCAL #ENDIF #IF(#IsBundleProduct AND #DEFINED(#DisplayPrice)) #IF(#COUNT(#BundledProducts)) #LOCAL("BundledListPriceSum",#FUNCTION("BUNDLEDLISTPRICESUM", #Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object)) #IF(#BundledListPriceSum)
{BundledProductPrices} #BundledListPriceSum[money]
#ENDIF #IF(#DisplayPrice < #BundledListPriceSum AND #DisplayPrice > 0) #LOCAL("Saving", #PRICESAVINGS(#Object, #DisplayPrice, #BundledListPriceSum)) #IF(#DEFINED(#Saving))
{YouSaving} #Saving[money]
#ENDIF #ENDLOCAL #ENDIF #ENDLOCAL #ENDIF #ENDIF #LOCAL("ReferencePrice",#FUNCTION("REFERENCEPRICE", #Object, #DisplayPrice, #INPUT.Currency))#IF(#DEFINED(#ReferencePrice) AND #DEFINED(#DisplayPrice) AND #ReferencePrice != #DisplayPrice)
#RefAmount #IF(#DEFINED(#RefUnit.Abbreviation))#RefUnit.Abbreviation#ELSE#RefUnit.NameOrAlias#ENDIF = #ReferencePrice[money]
#ENDIF #ENDLOCAL #MENU("Content-PriceBox")#INCLUDE(#Template)#ENDMENU
#REM end offer #ENDREM #MENU("Content-InfoArea")#INCLUDE(#Template)#ENDMENU
#REM #ENDREM #REM #ENDREM #LOCAL("Object",#_) #IF(#DEFINED(#FromSearch) AND #IsMaster)#SET("Object",#SearchFoundObject)#ENDIF #WITH(#Object) #IF(#ImageMedium OR #ImageLarge OR (#UseSlideshow AND #Shop.FeatureMaxValue.ProductSlideShow))
#INCLUDE("Image")
#ENDIF
#MENU("Content-AdditionalButtons-New")#INCLUDE(#Template)#ENDMENU
#ENDWITH #ENDLOCAL
#REM #ENDREM #ENDIF #REM #ENDLOCAL #ENDREM #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL