Tags/topics: 
1
Answers
Vote up!
0
Vote down!

Search Api and facets

Let's take the demo store as an example. The "All products" link in the main menu returns a page where we can do searches base on facets. So we create an Index type server and there we add what fields we need to use in our facets.

The thing i was asked to do is to have these facets search in the taxonomy term pages. Is there a way to do this thing?

Perhaps with a contextual filter in the view that reads the term id or something like that. Can you please give me a direction to achieve this?

Here is a store that use what i need to do. It's not drupal commerce store but you'll get the idea

Demo store

Thank you in advance

Asked by: dianikol
on October 12, 2012

1 Answer

Vote up!
1
Vote down!

Fantastic question that we get often concerning Kickstart 2!

It's very easy to do this, you simply need to go to the all products page and mouseover a block that you want to appear on the other pages and click "Configure Block" at the bottom. You'll notice this block is designed to show only on the "products" page. For fun, let's change the option "All pages except those listed" and then enter <front> to keep it from showing on the homepage.

Boom! You have facets on all product category pages.

Josh Miller
Answer by: Josh Miller
Posted: Jan 9, 2013

Comments

I did this but the blocks won't appear on the other product pages. What could've gone wrong?

- razorius on January 15, 2013

Me too.
I tried it both ways - showing it on specific pages, and excluding it on the frontpage, neither way works...

- sunesommer on January 25, 2013

Haahaa I think that condescending bit was a real fail. lol...

- Ron Pare on April 17, 2013