{Amazon}

#BLOCK("WITH_FORM_ERROR",#FormError)
#IF(#FormError)

{InputError}

#IF(#OBJECT_EXISTS) {DoubleObject} #ELSIF(#FormErrors.Reason.FeatureLimitExceeded) {FeatureLimitProductPortalsExceeded} #ELSE {PleaseCorrectErrors} #ENDIF
#ENDIF #IF(#DELETE)

{AcceptActionProductPortals1}

{AcceptActionProductPortals2}
#LOOP(#PortalConfigIDs)#ENDLOOP #ENDIF #LOCAL("Alternate",0) #IF(#DELETE) #LOOP(#DeleteObjects) #SET("Alternate",1-#Alternate) #ENDLOOP #ELSE #LOCAL("PortalSitesByCountry", #GET_PORTAL_SITES_BY_COUNTRY(#Shop.ID, 1)) #IF(#COUNT(#PortalSitesByCountry)) #REM All PortalConfigs which not displayed here must be represented by a hidden field #ENDREM #LOOP (#PortalConfigs) #IF (#Class.Alias EQ "UniversalConfig") #ENDIF #ENDLOOP #LOCAL("PrevCountry", "") #LOOP(#PortalSitesByCountry) #LOCAL("DisplayFeature", #FUNCTION("FeaturedActionAvailable", #Shop.Object, #UNDEF, #FeatureAlias)) #SET("PortalsAvailable", 1) #IF(#DisplayFeature NE "NotVisible") #IF(#PrevCountry NE #CountryNative) #LOCAL("Exists", 0) #LOOP(#PortalConfigs) #IF(#Alias EQ #PortalSiteAlias) #SET("Alternate",1-#Alternate) #SET("Exists", 1) #ENDIF #ENDLOOP #IF(NOT(#Exists)) #SET("Alternate",1-#Alternate) #ENDIF #ENDLOCAL #SET("PrevCountry", #CountryNative) #ELSE #LOCAL("Exists", 0) #LOOP(#PortalConfigs) #IF(#Alias EQ #PortalSiteAlias) #SET("Alternate",1-#Alternate) #SET("Exists", 1) #ENDIF #ENDLOOP #IF(NOT(#Exists)) #SET("Alternate",1-#Alternate) #ENDIF #ENDLOCAL #ENDIF #ENDIF #ENDLOCAL #ENDLOOP #ENDLOCAL #ELSE #ENDIF #ENDLOCAL #ENDIF #ENDLOCAL
{Country} {Products} {active}
#IF(#PortalSite.FlagGif)#PortalSite.Country.Native #ENDIF #PortalSite.Country.Native #IF(#ExportAllProducts) {AllProducts} #ELSE #CountProducts #ENDIF
#IF(#FlagGif)#CountryNative#IF(#ExistsPortalSiteOfSameCountry)  / #TRANSLATE(#Language.Code3)#ENDIF#ENDIF #CountryNative#IF(#ExistsPortalSiteOfSameCountry) / #TRANSLATE(#Language.Code3)#ENDIF #IF(NOT(#FeatureMaxValue))- {NotAvailableInThisShopType} #ENDIF #IF(#IsSandbox) ({SandBox}) #ENDIF
#IF(#ExportAllProducts) {AllProducts} #ELSE #CountProducts {Show} #ENDIF
#IF(#FlagGif)#CountryNative#IF(#ExistsPortalSiteOfSameCountry)  / #TRANSLATE(#Language.Code3)#ENDIF#ENDIF #CountryNative#IF(#ExistsPortalSiteOfSameCountry) / #TRANSLATE(#Language.Code3)#ENDIF #IF(NOT(#FeatureMaxValue))- {NotAvailableInThisShopType} #ENDIF
#IF(#FlagGif)#CountryNative#IF(#ExistsPortalSiteOfSameCountry)  / #TRANSLATE(#Language.Code3)#ENDIF#ENDIF #CountryNative#IF(#ExistsPortalSiteOfSameCountry) / #TRANSLATE(#Language.Code3)#ENDIF #IF(NOT(#FeatureMaxValue))- {NotAvailableInThisShopType} #ENDIF #IF(#IsSandbox) ({SandBox}) #ENDIF
#IF(#ExportAllProducts) {AllProducts} #ELSE #CountProducts {Show} #ENDIF
#IF(#FlagGif)#CountryNative#IF(#ExistsPortalSiteOfSameCountry)  / #TRANSLATE(#Language.Code3)#ENDIF#ENDIF #CountryNative#IF(#ExistsPortalSiteOfSameCountry) / #TRANSLATE(#Language.Code3)#ENDIF #IF(NOT(#FeatureMaxValue))- {NotAvailableInThisShopType} #ENDIF
{NoPortalsAvailable}
#IF(#DELETE) #ELSE #ENDIF
#ENDBLOCK