#IF(NOT #COUNT(#Pager.Items))
#IF(#INPUT.Search)

{NoSearchResults}

#ATTRIBUTEVALUE(#Shop.Object, "RemoteNoResultMessage", "DefaultNoResultMessage", #LanguageID, "DE_EPAGES::RemoteSearch") #ENDIF
#ENDIF #IF(#Shop.FeatureMaxValue.DetailedSearch)
#REM#ENDREM #IF(NOT #FormError AND #COUNT(#RemoteSearchFacets.facets))
#IF(#INPUT.Locale) #ENDIF #IF(#INPUT.Currency) #ENDIF
#LOCAL("anyFacetUsed",0) #LOCAL("StoreRootLayoutIconSet", #System.StoreRoot . "/" . #Style.LayoutIconSet) #LOOP(#RemoteSearchFacets.facets) #LOCAL("facetSelectedValue","") #LOCAL("facetSelected","") #LOCAL("facetClassName","") #LOCAL("facetTitle", #attributeName) #LOCAL("facetUsed",0) #LOCAL("facetContent",{( #IF(#attributeType EQ "Boolean") #SET("facetClassName","RemoteSearchFacetBoolean") #LOCAL("filterFieldName","") #LOOP(#values) #SET("filterFieldName", #filter.fieldName) #ENDLOOP #ENDLOCAL #ELSIF(#attributeType EQ "PreDefString" OR #attributeType EQ "PreDefMultiString" OR #attributeType EQ "PreDefLocalizedString" OR #attributeType EQ "PreDefMultiLocalizedString" OR (#attributeName EQ "Manufacturer" AND #attributeType EQ "Standard")) #SET("facetClassName","RemoteSearchFacetSelect") #IF(#attributeName EQ "Manufacturer" AND #attributeType EQ "Standard") #SET("facetTitle","{Manufacturer}") #ENDIF #LOOP(#values,0,0) #ELSIF(#attributeName EQ "IsNew" AND #attributeType EQ "Standard") #SET("facetClassName","RemoteSearchFacetBoolean") #SET("facetTitle","{IsNew}") #LOOP(#values) #SET("facetSelectedValue", #selectedValue) #SET("facetSelected", #facetSelectedValue EQ #filter.attributeValue) #IF(#facetSelected)#SET("facetUsed",1)#ENDIF #ENDLOOP #ELSIF(#attributeName EQ "Category" AND #attributeType EQ "Standard") #SET("facetClassName","RemoteSearchFacetCategory") #SET("facetTitle","{SearchIn}: [{AnyCategory}]") {ChooseCategory}
    #LOOP(#values,0,0) #IF(#GET("INPUT.FacetValue_".#filter.fieldName))
  • [{AnyCategory}] #IF(NOT #VIEW_ALLOWED_BYID(#filter.attributeValue)) {ActionNotAllowed} #ENDIF
  • #ENDIF #ENDLOOP #LOCAL("Break",0) #LOCAL("LoopContent","") #LOOP(#values) #IF(NOT #Break) #SET("facetSelectedValue", #selectedValue) #SET("facetSelected", #facetSelectedValue EQ #filter.attributeValue) #IF(#facetSelected)#SET("facetUsed",1)#ENDIF #LOCAL("LoopContentItem", {( #IF(#facetSelected)#SET("facetTitle","{SearchIn}: ".#name)#ENDIF
  • #IF(NOT #facetSelected)#ENDIF #IF(NOT #facetSelected)#ENDIF #IF(#_.children) #INCLUDE("INC-FacetCategory") #ENDIF
  • )}) #IF(#Break) #SET("LoopContent", #LoopContentItem) #ELSE #SET("LoopContent", #LoopContent.#LoopContentItem) #ENDIF #ENDLOCAL #ENDIF #ENDLOOP #LoopContent[0] #ENDLOCAL #ENDLOCAL
#ENDIF )}) #IF(NOT #IsEmpty(#facetContent)) #IF(#facetUsed)#SET("anyFacetUsed",1)#ENDIF
#facetTitle
#facetContent[0]
#ENDIF #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDLOOP #ENDLOCAL #IF(#anyFacetUsed) #ENDIF #ENDLOCAL
{SortBy}
#ENDIF #REM#ENDREM
#ENDIF #IF(NOT #FormError)#INCLUDE("INC-FacetedSearchResults")#ENDIF