#LOCAL("CurrencyID", #INPUT.Currency) #LOCAL("DisplayPrice", #UNDEF) #LOCAL("NoFromPrice", 1) #IF(#IsMaster) #REM#ENDREM #SET("NoFromPrice", 0) #SET("DisplayPrice", #DISPLAYPRICE(#Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object)) #ELSE #REM#ENDREM #SET("DisplayPrice", #DISPLAYPRICE(#Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object, #NoFromPrice)) #ENDIF #LOCAL("PriceDeposit", #DEPOSIT(#Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object)) #LOCAL("PriceEcoParticipation", #ECOPARTICIPATION(#Object, #CurrencyID, #Shop.TaxModel, #Session.User.Object))
#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