Module: Utils/FilterResultUtils

Utils module of filter result
Source:

Methods

(inner) buildProductItemUrl(data, hasCollectionopt)

Build URL for the product item
Parameters:
Name Type Attributes Default Description
data Object The product data
Properties
Name Type Description
handle String The product handle
hasCollection Boolean <optional>
true Set true if has collection in filter param
Source:
Build link for other sections like: pagination, limit, sort, display
Parameters:
Name Type Description
type String page, limit, sort or display
oldValue String | Nummer the currently param
newValue String | Number the new param
Source:

(inner) getSortingList()

Get the sorting list
Source:

(inner) isAdvancedPaginationType()

Return whether or not the pagination is advanced type
Source:

(inner) isDefaultPaginationType()

Return whether or not the pagination of a Product list page (Collection page, Type page, Search page, Tags page, ect) is default
Source:

(inner) isInfiniteLoadingPaginationType()

Return whether or not the pagination of a Product list page (Collection page, Type page, Search page, Tags page, ect) is infinite loading
Source:

(inner) isLoadMorePaginationType()

Return whether or not the pagination of a Product list page (Collection page, Type page, Search page, Tags page, ect) is load more
Source:

(inner) isLoadPreviousPagePaginationType()

Return whether or not the loading previout page is enabled
Source:

(inner) isNoFilterResult()

Return TRUE if the filter not found any product item
Source:

(inner) removeCollectionScopeParamFromUrl(link)

Remove collection_scope param from url
Parameters:
Name Type Description
link String The link that needs to remove collection_scope
Source:

(inner) removePageParamFromUrl(link)

Remove page param from URL
Parameters:
Name Type Description
link String The link that needs to remove page param
Source: