#LOCAL("TemplateAlias", #TemplateTypeAlias(#ID)) #LOCAL("CurrencyID", #INPUT.Currency) #LOCAL("DisplayPrice", #FUNCTION("DISPLAYPRICE", #Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object)) #LOCAL("ImgPosition","top") #LOCAL("ImgScale","medium") #REM#ENDREM #IF(#TemplateAlias EQ "ImageLeft_New" OR #TemplateAlias EQ "ImageUprightLeft_New") #SET("ImgPosition","left") #ENDIF #REM#ENDREM #IF(#TemplateAlias EQ "ImageRight_New" OR #TemplateAlias EQ "ImageUprightRight_New") #SET("ImgPosition","right") #ENDIF #REM#ENDREM #IF(#TemplateAlias EQ "ImageUprightLeft_New" OR #TemplateAlias EQ "ImageUprightRight_New") #SET("ImgScale","medium-vertical") #ENDIF #REM#ENDREM #LOCAL("ImgInfo",#ImageInfo(#ImageMedium,#PublicPath)) #IF(#ImgInfo.Width > 200) #SET("ImgScale","custom") #ENDIF #ENDLOCAL #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") #IF(#ImageMedium OR #ImageLarge OR (#COUNT(#ImagesSlideShow) AND #Shop.FeatureMaxValue.ProductSlideShow))