[Skip to main content](#vessel-content)

#   Filtering product displays

##

- **[Duke3D](/forum/user/6514-duke3d "View Duke3D's Profile")**
- [![Duke3D's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6514.png)](/forum/user/6514-duke3d "View Duke3D's Profile") Topic Author
- [ Offline](/forum/user/6514-duke3d)

Less More

- Posts: 9
- Thank you received: 2
-
-
-
- [](http://TurnToThePros.com)
-

14 years 3 months ago [\#61309](#61309) by [Duke3D](/forum/user/6514-duke3d "View Duke3D's Profile")  *[Filtering product displays](/forum/4-how-to/61309-filtering-product-displays#61309 "Hey Nick -  I'm still trying to wrap my head around how designers can implement designer-specified filters in product displays. I have setup filters. I understand that I can use the Filter module to expose those filters to end users to set or deselect them. What I am missing is how to set a filter for a product list based upon a custom field without placing the filter module onto the screen.  The options I'm seeing: 1) Implement the Filter Module with it's default filter set to the desired subset of products and then CSS display:none the module. 2) Adapt the code of a view to hard code in the filter criteria. 3) Create extra categories and manage manually place products that meet the filter into these extra categories so that menu items can display a filtered list by selecting a pre-filtered category. 4) Configure a stored/canned search and adapt the search results page to display as a product list.  All of these seem a bit messy and not very straightforward.  Am I missing something about how to associate a filter to a Hikashop content module / Hikashop options?  Same question for a Product Listing menu item / Hikashop options?  The demo shows filtering products to just those that are &quot;Featured&quot; but it looks like there is no Featured attribute in either the Product table or as a custom field - that this is being simulated by doing a &quot;most recent&quot; sort of the products in a category. Is this correct? If so, what would be the best way to add a filter to show only &quot;Featured&quot; when displaying various categories?")* was created by *[Duke3D](/forum/user/6514-duke3d "View Duke3D's Profile")*

Hey Nick -

I'm still trying to wrap my head around how designers can implement designer-specified filters in product displays. I have setup filters. I understand that I can use the Filter module to expose those filters to end users to set or deselect them. What I am missing is how to set a filter for a product list based upon a custom field without placing the filter module onto the screen.

The options I'm seeing:
1) Implement the Filter Module with it's default filter set to the desired subset of products and then CSS display:none the module.
2) Adapt the code of a view to hard code in the filter criteria.
3) Create extra categories and manage manually place products that meet the filter into these extra categories so that menu items can display a filtered list by selecting a pre-filtered category.
4) Configure a stored/canned search and adapt the search results page to display as a product list.

All of these seem a bit messy and not very straightforward.

Am I missing something about how to associate a filter to a Hikashop content module / Hikashop options?

Same question for a Product Listing menu item / Hikashop options?

The demo shows filtering products to just those that are "Featured" but it looks like there is no Featured attribute in either the Product table or as a custom field - that this is being simulated by doing a "most recent" sort of the products in a category. Is this correct? If so, what would be the best way to add a filter to show only "Featured" when displaying various categories?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMzA5LWZpbHRlcmluZy1wcm9kdWN0LWRpc3BsYXlzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

14 years 3 months ago [\#61396](#61396) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Filtering product displays](/forum/4-how-to/61309-filtering-product-displays#61396 "Hey Nick -  I'm still trying to wrap my head around how designers can implement designer-specified filters in product displays. I have setup filters. I understand that I can use the Filter module to expose those filters to end users to set or deselect them. What I am missing is how to set a filter for a product list based upon a custom field without placing the filter module onto the screen.  The options I'm seeing: 1) Implement the Filter Module with it's default filter set to the desired subset of products and then CSS display:none the module. 2) Adapt the code of a view to hard code in the filter criteria. 3) Create extra categories and manage manually place products that meet the filter into these extra categories so that menu items can display a filtered list by selecting a pre-filtered category. 4) Configure a stored/canned search and adapt the search results page to display as a product list.  All of these seem a bit messy and not very straightforward.  Am I missing something about how to associate a filter to a Hikashop content module / Hikashop options?  Same question for a Product Listing menu item / Hikashop options?  The demo shows filtering products to just those that are &quot;Featured&quot; but it looks like there is no Featured attribute in either the Product table or as a custom field - that this is being simulated by doing a &quot;most recent&quot; sort of the products in a category. Is this correct? If so, what would be the best way to add a filter to show only &quot;Featured&quot; when displaying various categories?")*

Hi,

The filtering system is made to allow users to filter listings based on their criteria.
It is not made to "prefilter" listings.
There is actually no such system. Only some simple options in the hikashop options screen to filter by category, or based on the content of the page, or display the recently viewed products.

The 3rd possibility is usually what is used by non developers to display featured products: display all the products one a category which is added as second category to the products. It works well for most cases.

Developers can create a hikashop plugin implementing the onBeforeProductListingLoad event which allows them to simply add conditions to the products listings:
[ www.hikashop.com/en/support/documentatio...reProductListingLoad](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html#onBeforeProductListingLoad)
Here is for example a thread which talks about that:
[ www.hikashop.com/en/forum/4-how-to/31130...duct-search-ymm.html](http://www.hikashop.com/en/forum/4-how-to/31130-custom-product-search-ymm.html)

The following user(s) said Thank You: [Duke3D](/forum/user/6514-duke3d "View Duke3D's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMzA5LWZpbHRlcmluZy1wcm9kdWN0LWRpc3BsYXlzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Duke3D](/forum/user/6514-duke3d "View Duke3D's Profile")**
- [![Duke3D's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6514.png)](/forum/user/6514-duke3d "View Duke3D's Profile") Topic Author
- [ Offline](/forum/user/6514-duke3d)

Less More

- Posts: 9
- Thank you received: 2
-
-
-
- [](http://TurnToThePros.com)
-

14 years 3 months ago [\#61425](#61425) by [Duke3D](/forum/user/6514-duke3d "View Duke3D's Profile")  Replied by *[Duke3D](/forum/user/6514-duke3d "View Duke3D's Profile")* on topic *[Re: Filtering product displays](/forum/4-how-to/61309-filtering-product-displays#61425 "Hey Nick -  I'm still trying to wrap my head around how designers can implement designer-specified filters in product displays. I have setup filters. I understand that I can use the Filter module to expose those filters to end users to set or deselect them. What I am missing is how to set a filter for a product list based upon a custom field without placing the filter module onto the screen.  The options I'm seeing: 1) Implement the Filter Module with it's default filter set to the desired subset of products and then CSS display:none the module. 2) Adapt the code of a view to hard code in the filter criteria. 3) Create extra categories and manage manually place products that meet the filter into these extra categories so that menu items can display a filtered list by selecting a pre-filtered category. 4) Configure a stored/canned search and adapt the search results page to display as a product list.  All of these seem a bit messy and not very straightforward.  Am I missing something about how to associate a filter to a Hikashop content module / Hikashop options?  Same question for a Product Listing menu item / Hikashop options?  The demo shows filtering products to just those that are &quot;Featured&quot; but it looks like there is no Featured attribute in either the Product table or as a custom field - that this is being simulated by doing a &quot;most recent&quot; sort of the products in a category. Is this correct? If so, what would be the best way to add a filter to show only &quot;Featured&quot; when displaying various categories?")*

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMzA5LWZpbHRlcmluZy1wcm9kdWN0LWRpc3BsYXlzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.071 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
