Forums › Forums › Search & Filter Pro › Search for woocommerce page show wrong
Tagged: woocommerce
- This topic has 19 replies, 2 voices, and was last updated 7 years, 8 months ago by Anonymous.
-
Anonymous(Private) February 23, 2017 at 3:21 am #92176
Hello,
I make a search form for each product category follow their custom fields. For Example Product Category A has 5 Custom fields, Category B has 4 Custom fields.Then I make each search form for them and use woocommerce search page as a result display page. But when I click each selection dropdown custom field. If that value has no result, it query all of the products to the result page.
Please you visit for my demo website?
Example Case A, for now put only 2 products for this category. But when I select “Dimmable” to be “NO” (the last selection dropdown) it should show me only the product that the value is NO or if not has it should show “no result …. blah” But you see? it query all of the products to the result page.https://buksohn.com/2017/eginter/product-category/nex/lighting/led-lamp/
Or also this
https://buksohn.com/2017/eginter/product-category/noark/consumer-units/plastic-boxes/flush-mount-plastic-boxes/it show the same problem.
Do you have any suggestion please?
Thank you,
SohnTrevor(Private) February 23, 2017 at 10:14 am #92270Yes, that is the problem. You are allowed only one of each type (Display Results Method) of these forms.
However, on the Display Results Method tab, there is a setting to detect categories and help the search stay on the page, instead of re-directing to the shop or Post Type archive page. So, you can make only one form of each type, but tick that setting box and use the form on many pages. The form must include the category field, even if you use Custom CSS to hide it and simply let the plugin populate it for you. On the general settings tab there are also three auto detect settings that you may need to use.
Trevor(Private) February 23, 2017 at 12:43 pm #92336Find the setting on the General Settings tab
Choose which kinds of pages S&F will try to do this on
and make sure that you tickTag, Category & Taxonomy Archives
.On the Display Results tab there is also
Enable filtering on Taxonomy Archives
in theTemplate Options
and you must also tick this. You should be able to use the same form on each.Note that the taxonomy that forms the page URL (in your case
product-category
) also has to be a field in the form for the plugin to be able to auto set it (as I said, you can hide the field using custom css if you need to).Anonymous(Private) February 23, 2017 at 3:25 pm #92451Thank you very much. Now it seem to works. but i still have a problem about the pagination. I test with a search form which show 1 product for page. But when I use the Display result page as Post Type Archive (for every forms), the products are showed all in the in first page.
How to solve this please?
Thank you
Anonymous(Private) March 2, 2017 at 6:38 am #93911HI,
For one more question please.As you suggest that “Choose which kinds of pages S&F will try to do this on”
For this case I still can use Taxonomy result page or woocommerce page for the result?
Or I have to create the new page for each product category?
Thank you
-
AuthorPosts