#LOCAL("IsErrorDisplayed", 0) #IF(#FormErrors.Form.NoForm OR #FormErrors.Form.Save)
#SET("IsErrorDisplayed", 1) #LOOP(#FormErrors.Reasons)#IF(#Reason EQ "ProductNotVisible")

{ProductNotVisible}

#ELSIF(#Reason EQ "ProductNoTaxClass")

{ProductNoTaxClass}

#ELSIF(#Reason EQ "ProductNoPrice")

{ProductNoPrice}

#ELSIF(#Reason EQ "FORMAT_NOT_INTEGER") #LOOP(#Errors)#IF(#Name EQ "PaymentMethod") {SelectPaymentMethod}#ELSIF(#Name EQ "ShippingMethod") {SelectShippingMethod}#ELSIF(#Name EQ "TaxArea") {SelectTaxArea}#ELSIF(#Name EQ "Quantity") {EnterValidValue}#ELSE #Name#ENDIF#ENDLOOP #ELSIF(#Reason EQ "FORMAT_NOT_FLOAT" OR #Reason EQ "FLOAT_TOO_SMALL" OR #Reason EQ "STRING_EMPTY")

{EnterValidValue}

#ELSIF(#Reason EQ "CustomerCanNotOrder")

{CustomerCanNotOrder}

#ELSIF(#Reason EQ "ShippingMethodChanged")

{ShippingMethodChanged}

#ELSIF(#Reason EQ "PaymentMethodChanged")

{PaymentMethodChanged}

#ELSIF(#Reason EQ "ShippingMethodChangedByAddress")

{ShippingMethodChangedByAddress}

#ELSIF(#Reason EQ "PaymentMethodChangedByAddress")

{PaymentMethodChangedByAddress}

#ELSIF(#Reason EQ "NoShippingMethod")

{NoShipping}

#ELSIF(#Reason EQ "NoPaymentMethod")

{NoPayment}

#ELSE

{UnknownError} #Reason

#ENDIF#ENDLOOP
#ENDIF #IF(#TaxChanged AND NOT #Shop.VATreleased)

{Notification}

{TaxChanged}


#ENDIF #LOCAL("IsCustomerFromEUCountry",1) #IF(#ShippingAddress) #SET("IsCustomerFromEUCountry",#ShippingAddress.Country.IsEU) #ELSE #IF(#BillingAddress) #SET("IsCustomerFromEUCountry",#BillingAddress.Country.IsEU) #ENDIF #ENDIF #IF(#Session.TaxModelChanged) #IF(#Shop.OrderProcess == 1) #IF( #INPUT.ViewAction EQ "ViewMultiCheckoutConfirmation")

{Notification}

#IF(#IsCustomerFromEUCountry)

{TaxModelChanged}

#ELSE

{TaxChanged}

#ENDIF

#ENDIF #ELSE

{Notification}

#IF(#IsCustomerFromEUCountry)

{TaxModelChanged}

#ELSE

{TaxChanged}

#ENDIF

#ENDIF #ENDIF #ENDLOCAL #IF(#ReachMaxBasketPositions)

{ReachedMaxBasketPositions}

{ReachedMaxBasketPositionsInfo}

#ENDIF #IF(NOT #IsMinOrderAmountReached)#SET("IsErrorDisplayed", 1)
#LOCAL("CurrencyID", #LineItemContainer.CurrencyID)

{MinOrderAmount}

#ENDLOCAL
#ENDIF #LOCAL("AnyQuantityChanged",0)#WITH(#LineItemContainer)#LOOP(#LineItems)#IF(#IsChanged)#SET("AnyQuantityChanged",1)#ENDIF#ENDLOOP#ENDWITH#IF(#AnyQuantityChanged)

{BasketItemChanged}

#ENDIF#ENDLOCAL #IF(#ItemsChanged)#SET("IsErrorDisplayed", 1)

{BasketItemsRemoved}

#ENDIF #IF(#CantChangeCurrency)#SET("IsErrorDisplayed", 1)

{CantChangeCurrency}

#ENDIF #ENDLOCAL