{Address}
{AccountArea}
#IF(#Shop.FeatureMaxValue.CustomerAttributes)
{Attributes}
#ENDIF
#IF(#SEND_MAIL_FAILED)
{Notification}
{SEND_MAIL_FAILED}
#ENDIF
#MENU("NotificationMessages")#INCLUDE(#Template, "NoDebug")#ENDMENU
#IF(#PASSWORD_SEND_OK)
{Notification}:
{PasswdSendOk}
#ENDIF
#BLOCK("WITH_FORM_ERROR", #FormError)
#IF(#DELETE)
{AcceptAction}
{AcceptActionInfo}
#ENDIF
#IF(#FormError)
{InputError}
#IF(#OBJECT_EXISTS)
{ObjectExists}
#ELSIF(#LOGIN_EXISTS)
{LoginExists}
#SET("UserName",#UserName)
#ELSIF(#FormErrors.Reason.PASSWORD_NOT_SAME)
{PASSWORD_NOT_SAME}
#ELSIF(#FormErrors.Reason.PASSWORD_WRONG)
{WrongPassword}
#ELSIF(#FormErrors.Reason.STRING_TOO_LONG OR #FormError_BankName)
{StringTooLong}
#ELSIF(#FormErrors.Reason.CantRenameMerchant)
{CantRenameMerchant}
#ELSIF(#FormErrors.Reason.CantDeactivateMerchant)
{CantDeactivateMerchant}
#ELSIF(#FormErrors.Reason.CantChangeMerchantPassword)
{CantChangeMerchantPassword}
#ELSIF(#FormErrors.Reason.STRING_EMPTY AND #FormError_EMail)
{NoMailaddress}
#ELSE
{PleaseCorrectErrors}
#ENDIF
#ENDIF
#ENDBLOCK
#LOCAL("CustomerBillingAddress", #BillingAddress)
#LOCAL("ShowAddressChangeMessage",0)#LOCAL("SelectedUserID",#UNDEF)#LOCAL("UserWithUnchangedAddress",0)
#LOOP(#Users)
#LOCAL("Difference",0)
#LOOP(#Shop.RegistrationSet)
#IF(#IsVisible AND #Attribute.AttributeClass.Alias EQ "Address")
#LOCAL("BillingAddressAA",#GET("BillingAddress.".#Attribute.Alias))
#LOCAL("CustomerBillingAddressAA",#GET("CustomerBillingAddress.".#Attribute.Alias))
#IF(#COMPARE(#Attribute.Type, #BillingAddressAA, #CustomerBillingAddressAA) != 0)
#SET("Difference",1)#SET("SelectedUserID",#ID)
#ENDIF
#ENDLOCAL
#ENDLOCAL
#ENDIF
#ENDLOOP
#IF(#Difference)#SET("ShowAddressChangeMessage",1)#ENDIF
#IF(#Difference == 0 )#SET("UserWithUnchangedAddress",1)#ENDIF
#ENDLOCAL
#ENDLOOP
#IF(#UserWithUnchangedAddress == 1)
#SET("ShowAddressChangeMessage",0)
#ENDIF
#IF(#ShowAddressChangeMessage)
{Notification}
#IF(#COUNT(#Users)>1)
{NoUserWithTheSameAddress}
#ELSE
{UserChangedBillingAddress}
#ENDIF
{CompareData}
#ENDIF
#ENDLOCAL#ENDLOCAL#ENDLOCAL#ENDLOCAL
#WITH(#BillingAddress)#BLOCK("WITH_FORM_ERROR", #FormError)
#IF(#FormError)
#ENDIF
#IF(NOT #COUNT(#UserDefinedAttributeValues))
{NoUserAttributesDefined}
#ENDIF
#LOOP(#Users)
#IF(#Session.User.Alias EQ #Alias)
#SET("NoSelfDelete",1)
#ENDIF
#ENDLOOP
#IF(#DELETE)
#ELSE
#IF(#INPUT.PopUp)
#ELSE
#IF(NOT #NoSelfDelete)
#IF(#Session.User.DeleteConfirmation)
#ELSE
#ENDIF
#ENDIF
#ENDIF
#ENDIF
#REM#ENDREM
#LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, "CustomerAttributes"))#IF(#DisplayFeature NE "NotVisible")