#LOCAL("SelectedUserID",#UNDEF)#LOCAL("UserBillingAddress",#UNDEF)#LOCAL("UserShippingAddress",#UNDEF) #IF(#DEFINED(#INPUT.SelectedUserID)) #SET("SelectedUserID",#INPUT.SelectedUserID) #LOOP(#Users)#IF(#INPUT.SelectedUserID==#ID) #SET("SelectedUserID",#ID) #IF(#DEFINED(#BillingAddress))#SET("UserBillingAddress",#BillingAddress)#ENDIF #IF(#DEFINED(#ShippingAddress))#SET("UserShippingAddress",#ShippingAddress)#ENDIF #ENDIF#ENDLOOP #ELSE #LOOP(#Users)#IF(#ItemNo==0) #SET("SelectedUserID",#ID) #IF(#DEFINED(#BillingAddress))#SET("UserBillingAddress",#BillingAddress)#ENDIF #IF(#DEFINED(#ShippingAddress))#SET("UserShippingAddress",#ShippingAddress)#ENDIF #ENDIF#ENDLOOP #REM#ENDREM #ENDIF
{CustomerLogin} #IF(#COUNT(#Users)) {BillingAddress} {UserDefaultShippingAddress} #ELSE {BillingAddress} {UserDefaultShippingAddress} #ENDIF
#IF(#COUNT(#Users)>1)
{SelectUser}
#ENDIF
#IF(#SEND_MAIL_FAILED)

{InputError}

{SEND_MAIL_FAILED}

#ELSIF(#PASSWORD_SEND_OK)

{PasswdMailSent}

#ELSIF(#USER_CREATED_SEND_MAIL_FAILED)

{Attention}

{UserCreatedSendMailFailed}

#ELSIF(#USER_CREATED_SEND_MAIL)

{UserCreatedOk}

{PasswdMailSent}

#ENDIF #IF(#FormError AND NOT #FormErrors.Reason.LOGIN_INACTIVE)

{InputError}

#IF(#FormErrors.Reason.PASSWORD_NOT_SAME)

{PWD_NOT_SAME}

#ELSIF(#FormErrors.Reason.STRING_TOO_SHORT)

{PasswordLength}

#ELSIF(#FormErrors.Reason.LOGIN_EXISTS)

{UserExists}

#ELSIF(#FormErrors.Reason.PWD_NOT_SAME)

{PWD_NOT_SAME}

#ELSIF(#FormErrors.Reason.PASSWORD_WRONG)

{WrongPassword}

#ELSIF(#FormErrors.Reason.USER_NO_PWD)

{NoPassword}

#ELSIF(#FormErrors.Reason.LOGIN_INACTIVE)

#ELSIF(#FormErrors.Reason.FORMAT_NOT_EMAILADDRESS)

{FormatNotEMail}

#ELSE #LOOP(#FormErrors.Errors) #IF(#Reason EQ "STRING_EMPTY")

{MandatoryNotice}

#ELSE
Error: #Reason, #Value, #Name (#Index). #ENDIF #ENDLOOP {PleaseCorrectErrors} #ENDIF
#ELSIF(#FormError AND #FormErrors.Reason.LOGIN_INACTIVE)

{Attention}

{EmailNotSendUserNotActivated}
#ENDIF #IF(NOT #COUNT(#Users)) #IF(NOT #FormError)

{Notification}

{NoUsersAvailableInfo}

#ENDIF
{IsActivated} #IF(#FormError AND #DEFINED(#INPUT.UserIsActivated)) #ELSE #ENDIF
{Name} {MandatoryStar}
{UserName} {MandatoryStar}
{IsHtmlEMailAllowed} #IF(#FormError AND #DEFINED(#INPUT.UserIsHtmlEMailAllowed)) #ELSE #ENDIF
{EMail} {MailUsage}
{Language}
{CurrencyID} #LOCAL("CurrentCurrencyID",#CurrencyID) #ENDLOCAL
#LOOP(#Shop.RegistrationSet) #IF(#IsVisible AND #DEFINED(#Attribute.AttributeClass.Alias) AND #Attribute.AttributeClass.Alias EQ "Address") #LOCAL("Value", #GET("BillingAddress.".#Attribute.Alias)) #IF(#Attribute.Type EQ "Date") #ELSE #ENDIF #ENDLOCAL #ENDIF #ENDLOOP

#ELSE #LOOP(#Users)#IF(#SelectedUserID EQ #ID)
#IF(NOT #IsMerchant) #ENDIF
{IsEmailVerified} {BubbleHelpIsEmailVerified}
{IsActivated} #IF(#FormError AND #DEFINED(#INPUT.UserIsActivated)) #ELSE #ENDIF
{Name} {MandatoryStar}
{UserName}{MandatoryStar}
{IsHtmlEMailAllowed} #IF(#FormError AND #DEFINED(#INPUT.UserIsHtmlEMailAllowed)) #ELSE #ENDIF
{EMail} {MailUsage}
{Language} #LOCAL("UserLocaleID",#LocaleID) #ENDLOCAL
{CurrencyID} #LOCAL("CurrentCurrencyID",#CurrencyID) #ENDLOCAL
#IF(NOT #IsMerchant) #ENDIF
{SendPassword} {BubbleHelpSendPassword}


{PasswordChangeTitle}
{NewPassword}
{PasswordConf}

{ReminderQuestion}
{ChallengePhrase}
#ENDIF#ENDLOOP #ENDIF
{MandatoryFields}

{RelatedTopics}

#IF(#FormError)

{InputError}

{PleaseCorrectErrors}

#ENDIF #IF(#DEFINED(#UserBillingAddress)) #LOCAL("CustomerBillingAddress", #BillingAddress) #LOCAL("ShowAddressChangeMessage",0)#LOCAL("SelectedUserID",#UNDEF)#LOCAL("UserWithUnchangedAddress",0) #LOOP(#Users) #LOCAL("Difference",0) #LOOP(#Shop.RegistrationSet) #LOCAL("BillingAddress",#GET("BillingAddress.".#Attribute.Alias)) #LOCAL("CustomerBillingAddress",#GET("CustomerBillingAddress.".#Attribute.Alias)) #IF(#IsVisible AND #DEFINED(#Attribute.AttributeClass.Alias) AND #Attribute.AttributeClass.Alias EQ "Address") #IF(#DEFINED(#Attribute.Type)) #IF(#COMPARE(#Attribute.Type, #BillingAddress, #CustomerBillingAddress) != 0) #SET("Difference",1)#SET("SelectedUserID",#ID) #ENDIF #ENDIF #ENDIF #ENDLOCAL#ENDLOCAL #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(#UserBillingAddress) #LOCAL("HasUS", 0)#LOCAL("HideUSStates",0) #LOOP(#Shop.RegistrationSet) #IF((#IsVisible AND #DEFINED(#Attribute.AttributeClass.Alias) AND #Attribute.AttributeClass.Alias EQ "Address") OR (#HasUS AND #Attribute.Alias EQ "State")) #ENDIF #ENDLOOP
#Attribute.NameOrAlias #BLOCK("WITH_FORM_ERROR", #FormError)#LOCAL("ErrorItemNo",0) #LOCAL("Value", #GET("UserBillingAddress.".#Attribute.Alias)) #LOCAL("ObjectClass","BillingAddress") #INCLUDE("INC-AddressAttributes") #ENDLOCAL #ENDLOCAL#ENDLOCAL #ENDBLOCK
#ENDLOCAL#ENDLOCAL #ENDWITH #ELSE

{Notification}

{UserHasNoBillingAddress}

#ENDIF

{RelatedTopics}

#IF(#FormError )

{InputError}

{PleaseCorrectErrors}

#ENDIF #IF(#DEFINED(#UserShippingAddress)) #WITH(#UserBillingAddress) #LOCAL("HasUS", 0)#LOCAL("HideUSStates",0) #LOOP(#Shop.RegistrationSet) #IF((#IsShippingAddressVisible AND #DEFINED(#Attribute.AttributeClass.Alias) AND #Attribute.AttributeClass.Alias EQ "Address") OR (#HasUS AND #Attribute.Alias EQ "State")) #BLOCK("WITH_FORM_ERROR", #FormError)#LOCAL("ErrorItemNo",0) #LOCAL("Value", #GET("UserShippingAddress.".#Attribute.Alias)) #LOCAL("ObjectClass","ShippingAddress") #INCLUDE("INC-AddressAttributes") #ENDLOCAL #ENDLOCAL#ENDLOCAL #ENDBLOCK #ENDIF #ENDLOOP
#Attribute.NameOrAlias
#ENDLOCAL#ENDLOCAL #ENDWITH #ELSE

{Notification}

{UserHasNoShippingAddress}

#ENDIF
#REM#ENDREM #ENDLOCAL#ENDLOCAL#ENDLOCAL