#WITH_ERROR(#FormError)
#IF(#FormError)
#IF(#FormErrors.Reason.EbaySiteNeedsCurrencyThatIsNotEnabledOnShop)

{IncompleteCurrencySettings}

#LOOP(#FormErrors.Reason.EbaySiteNeedsCurrencyThatIsNotEnabledOnShop.Errors) {EbaySiteNeedsCurrencyThatIsNotEnabledOnShop}
{CurrencySettings} #ENDLOOP #ENDIF #IF(#FormErrors.Reason.WrongInputs)

{InputError}

{PleaseCorrectErrors} #ENDIF
#ENDIF #IF(#DELETE)

{Warning}

{AcceptAction}
#LOOP(#DeleteObjects)#ENDLOOP #ENDIF #LOCAL("VisibleEnvironments",0) #LOOP(#System.EbayEnvironments)#IF(#IsVisible)#SET("VisibleEnvironments",1)#ENDIF#ENDLOOP #IF(NOT #VisibleEnvironments)

{Notification}

{NoSystemEbayEnvironments}

#ENDIF #ENDLOCAL #IF(#DELETE) #LOOP(#DeleteObjects) #ENDLOOP #ELSE #IF(NOT #COUNT(#EbayShopEnvironments)) #ELSE #LOOP(#EbayShopEnvironments) #ENDLOOP #ENDIF #ENDIF #IF(NOT #DELETE) #ENDIF
{Name} {Environment} {CurrencyID} {Language} {EbayUserName} {Token}
#NameOrAlias {Environment}: #EbayEnvironment.Name #EbayEnvironment.Name #LOOP(#Currencies) #IF(#EbayEnvironment.CurrencyID EQ #CurrencyID) #Name #ENDIF #ENDLOOP #LOCAL("EnvLanguage", #FUNCTION("GetLanguageByCode", #EbayEnvironment.LanguageID[LC])) #EnvLanguage.Native #ENDLOCAL #EbayUserName #IF(#EbayTokenExpiryDate)#EbayTokenExpiryDate[date]#ENDIF
{noEbayShopEnvironments}
#NameOrAlias #IF(NOT #EbayLocation OR NOT #DEFINED(#EbayRegion) OR NOT #EbayCountry) {DoComplete} #ELSIF (NOT #EbayToken) {AuthenticateNow} #ELSIF (#EbayTokenExpiryDate < #Now) {RenewAuthenticationNow} #ENDIF {Environment}: #EbayEnvironment.Name #EbayEnvironment.Name #LOOP(#Currencies) #IF(#EbayEnvironment.CurrencyID EQ #CurrencyID) #Name #ENDIF #ENDLOOP #LOCAL("EnvLanguage", #FUNCTION("GetLanguageByCode", #EbayEnvironment.LanguageID[LC])) #EnvLanguage.Native #ENDLOCAL #EbayUserName #IF(#EbayTokenExpiryDate)#EbayTokenExpiryDate[date]#ENDIF
#IF(#DELETE) #ELSE #ENDIF
#ENDWITH_ERROR #IF(#FUNCTION("MENU_COUNT", "RelatedTopic") > 0)

{RelatedTopics}

#ENDIF