Filtering product displays

  • Posts: 9
  • Thank you received: 2
12 years 2 months ago #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 "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 or Create an account to join the conversation.

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 2 months ago #61396

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
Here is for example a thread which talks about that:
www.hikashop.com/en/forum/4-how-to/31130...duct-search-ymm.html

The following user(s) said Thank You: Duke3D

Please Log in or Create an account to join the conversation.

  • Posts: 9
  • Thank you received: 2
12 years 2 months ago #61425

Thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum