#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")
{ReachedMaxBasketPositionsInfo}
#ELSE {UnknownError} ({Error}: #Reason) #ENDIF #ENDLOOP #ENDIF#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))