#LOCAL("facetSelectedValue","") #LOCAL("facetSelected","") #IF(#attributeType EQ "Boolean") #SET("facetClassName","RemoteSearchFacetBoolean") #ELSIF(#attributeType EQ "Integer") #SET("facetClassName","RemoteSearchFacetNumber") #LOOP(#values) #IF(#filter.attributeRange.min AND #filter.attributeRange.max AND #filter.attributeRange.min NE #filter.attributeRange.max) #LOCAL("FormElementName", "FacetRange_".#filter.fieldName) #ENDLOCAL #ENDIF #ENDLOOP #ELSIF(#attributeType EQ "Float") #SET("facetClassName","RemoteSearchFacetNumber") #LOOP(#values) #IF(#filter.attributeRange.min AND #filter.attributeRange.max AND #filter.attributeRange.min NE #filter.attributeRange.max) #LOCAL("FormElementName", "FacetRange_".#filter.fieldName) #ENDLOCAL #ENDIF #ENDLOOP #ELSIF(#attributeName EQ "ListPrice" AND #attributeType EQ "Standard") #SET("facetClassName","RemoteSearchFacetPrice") #SET("facetTitle","{Price}") #LOOP(#values) #IF(#filter.attributeRange.min AND #filter.attributeRange.max) #LOCAL("FormElementName", "FacetRange_".#filter.fieldName) #ENDLOCAL #ENDIF #ENDLOOP #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 #ELSIF(#attributeName EQ "IsNew" AND #attributeType EQ "Standard") #SET("facetClassName","RemoteSearchFacetBoolean") #SET("facetTitle","{IsNew}") #ELSIF(#attributeName EQ "Category" AND #attributeType EQ "Standard") #SET("facetClassName","RemoteSearchFacetCategory") #SET("facetTitle","{Categories}") #LOCAL("HasLoopContent", 0) #LOCAL("LoopInnerContent", {( #IF(NOT #IsCategoryView) #LOOP(#values,0,0) #IF(#GET("INPUT.FacetValue_".#filter.fieldName))
  • [{AnyCategory}]
  • #ENDIF #ENDLOOP #ENDIF #LOCAL("Break",0) #LOCAL("LoopContent","") #LOOP(#values) #IF(NOT #Break) #SET("facetSelectedValue", #selectedValue) #SET("facetSelected", #facetSelectedValue EQ #filter.attributeValue) #IF(#facetSelected AND NOT #IsCategoryView)#SET("facetUsed",1)#ENDIF #LOCAL("LoopContentItem", {( #IF(#VIEW_ALLOWED_BYID(#filter.attributeValue)) #SET("HasLoopContent", 1)
  • #IF(NOT #facetSelected)#ENDIF #IF(NOT #facetSelected)#ENDIF #IF(#_.children) #INCLUDE("INC-FacetsListCategories") #ENDIF
  • #ENDIF )}) #IF(#Break) #SET("LoopContent", #LoopContentItem) #ELSE #SET("LoopContent", #LoopContent.#LoopContentItem) #ENDIF #ENDLOCAL #ENDIF #ENDLOOP #LoopContent[0] #ENDLOCAL #ENDLOCAL )}) #IF(#HasLoopContent) #ENDIF #ENDLOCAL #ENDLOCAL #ELSIF(#attributeName EQ "AverageRating" AND #attributeType EQ "Standard") #SET("facetClassName","RemoteSearchFacetRating") #SET("facetTitle","{Rating}") #LOOP(#values) #SET("facetSelectedValue", #selectedValue) #SET("facetSelected", #facetSelectedValue EQ #filter.attributeValue) #IF(#facetSelected)#SET("facetUsed",1)#ENDIF #ENDLOOP #ENDIF #ENDLOCAL #ENDLOCAL