#LOCAL("IsErrorDisplayed", 0) #LOCAL("IsErrorDisplayedMinOrderAmountReached", 0) #IF(#FormErrors.Form.NoForm OR #FormErrors.Form.Save)
#SET("IsErrorDisplayed", 1) #LOOP(#FormErrors.Errors) #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}

#ELSIF(#Reason EQ "ConnectionError")

{ConnectionError}

#ELSIF(#Reason EQ "card_declined")

{CardDeclined}

#ELSIF(#Reason EQ "ProductMarkedAsChanged")

{BasketItemChanged}

#Value

#ELSIF(#Reason EQ "ProductNotAvailable")

#Shop.ProductNoAddToBasketText: #Value

#ELSIF(#Reason EQ "MinOrderIsNotReached") #SET("IsErrorDisplayedMinOrderAmountReached", 1)

{MinOrderAmount}

#ELSIF(#Reason EQ "unknown_error_code")

{UnknownErrorCode}

#ELSE

{UnknownError} #Reason

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

{Notification}

{TaxChanged}


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

{Notification}

#IF(#IsCustomerFromEUCountry AND #ExistsVATID)

{TaxModelChanged}

#ELSE

{TaxChanged}

#ENDIF

#ENDIF #ELSE

{Notification}

#IF(#IsCustomerFromEUCountry AND #ExistsVATID)

{TaxModelChanged}

#ELSE

{TaxChanged}

#ENDIF

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

{ReachedMaxBasketPositions}

{ReachedMaxBasketPositionsInfo}

#ENDIF #IF(NOT #IsMinOrderAmountReached AND NOT #IsErrorDisplayedMinOrderAmountReached) #SET("IsErrorDisplayedMinOrderAmountReached", 1)

{MinOrderAmount}

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

{BasketItemsRemoved}

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

{CantChangeCurrency}

#ENDIF #ENDLOCAL #ENDLOCAL