#LOCAL("CurrencyID", #INPUT.Currency)#LOCAL("DisplayPrice", #FUNCTION("DISPLAYPRICE", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object)) #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")
{ReachedMaxBasketPositionsInfo}
#ELSE {UnknownError} ({Error}: #Reason) #ENDIF #ENDLOOP #ENDIF#INCLUDE("Image") | #ENDIF#REM#ENDREM
#BLOCK("InlineEditor", "text", #Object, "Name", "Tag=h1")
#IF(#IsNew){New}#ENDIF
#REM #ENDREM
#NameOrAlias#ENDBLOCK #IF(#Shop.IsProductNoVisible){ItemNoShort}: #Alias#ENDIF #IF(#Shop.IsProductNoVisible)#ENDIF #BLOCK("InlineEditor", "html", #Object, "Text", "Tag=div") #IF(#Text) #Text[0]
#ELSE#Description[0]
#ENDIF
#ENDBLOCK
#IF(NOT #IsAvailable)
#IF(#AvailabilityComment)
#BLOCK("InlineEditor", "html", #Object, "AvailabilityComment", "Tag=div") #AvailabilityComment[0]
#ENDBLOCK
#ENDIF
#ELSE
#INCLUDE("INC-ProductStockLevel")
#IF(NOT #IsDeliveryTimeLonger AND #CanAddToBasket AND #DeliveryPeriod)
{DeliveryPeriod}: #DeliveryPeriod {DaysFuzzy}
#ENDIF
#ENDIF
#LOCAL("ManufacturerPrice", #FUNCTION("MANUFACTURERPRICE", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object))
#IF(#DEFINED(#ManufacturerPrice))
#IF(#Shop.ReferencePriceText)#Shop.ReferencePriceText[0]#ENDIF
#IF(#Shop.CancelReferencePrice)#ManufacturerPrice[money]#ELSE #ManufacturerPrice[money]#ENDIF
#ENDIF
#ENDLOCAL
#IF(#DEFINED(#DisplayPrice))
#IF(#IsBundleProduct)
{Price} #INCLUDE("INC-DisplayPrice")
#ELSE
#SNIPPET("INC-DisplayPrice", "NoVariationPriceFromText", "1")
#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
#IF(#DEFINED(#EcoParticipationCategory))
#LOCAL("PriceEcoParticipation", #FUNCTION("ECOPARTICIPATION", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object))
#IF(#PriceEcoParticipation)#LOCAL("EcoTotalAmount", #CALCULATE(#PriceEcoParticipation + #DisplayPrice))
#ENDLOCAL#ENDIF
#ENDLOCAL
#ENDIF
#ENDIF
#IF(#IsBundleProduct AND #DEFINED(#DisplayPrice))
#IF(#COUNT(#BundledProducts))
#LOCAL("BundledListPriceSum",#FUNCTION("BUNDLEDLISTPRICESUM", #Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object))
#LOCAL("Saving", #CALCULATE(#BundledListPriceSum - #DisplayPrice))
#IF(#Saving > 0)
#IF(#BundledListPriceSum)
{BundledProductPrices} #BundledListPriceSum[money]
#ENDIF
{Saving}
#Saving[money]
#ENDIF
#ENDLOCAL
#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
#IF(#IsDailyPrice){IsDailyPriceSF} #ENDIF
#MENU("Content-Base")#INCLUDE(#Template)#ENDMENU
#ENDLOCAL#ENDLOCAL
| #REM#ENDREM