Forums › Forums › Search & Filter Pro › Results Bug
Tagged: results, url rewrite
- This topic has 16 replies, 2 voices, and was last updated 9 years, 1 month ago by Ross.
-
Anonymous(Private) September 17, 2015 at 10:37 pm #25125
Hello,
When i go to this page http://www.laptopdealsnow.com/?sfid=17&_sft_product_cat=amazon+asus and select Acer + Amazon it goes to this page which have two results http://www.laptopdealsnow.com/?sfid=17
But it should have 0 results since no products belongs to those two categories.
Also, How to do url rewrite on those plugin urls results?
Thank you.
Ross Moderator(Private) September 17, 2015 at 11:59 pm #25128Hi there
You cannot do rewrites I’m afraid – alot of the URL is built in JS for speed and reducing http requests.
RE the first question, in the “tags, categories and taxonomies” tab, you just need to change the relationship option to “AND”.
Thanks
Anonymous(Private) September 18, 2015 at 12:22 am #25138That’s what i did it works when i’m on http://www.laptopdealsnow.com/ But not when i’m on http://www.laptopdealsnow.com/?sfid=17&_sft_product_cat=amazon+asus
Here is a screenshot. You can check categories by clicking on products and check yourself.
Anonymous(Private) September 18, 2015 at 12:32 am #25143I think the problem is when you first choose categories and click on submit it works. You are redirected to the right page ( For example: http://www.laptopdealsnow.com/?sfid=17&_sft_product_cat=acer-brand+amazon+asus ). But When you are on the result page and retry to make another choice of categories selecting you get redirected to http://www.laptopdealsnow.com/?sfid=17 ( No &_sft_product_cat=… in the url ) no matter what you choose.
Ross Moderator(Private) September 18, 2015 at 12:44 am #25148Ah yes I see the problem
Your search form is actually inside your ajax results container – so every ajax request the search form is replaced, but not reinitialised – thats why it always works first time.
I would change your results selector from
#content
to#main
.Just to check, do you plan to use S&F with WooCommerce? 2.0 (out on Monday) has much better support for WooCommerce including support for using the shop page directly 🙂 – might be better to hold out until then!
Thanks
Anonymous(Private) September 18, 2015 at 2:20 pm #25181Hello,
Thank you, it fixed it.
Also i have custom key “Processor” with for example Value “Core i3 9865” in products.
In Search and Filter i added Post Meta “Processor” Value “Core i3 and in Post Meta tab:
Processor, Char, Like, Core i3
But in http://www.laptopdealsnow.com/ it doesn’t work, it gives me no results.
Also i will create a page for each custom field, for example http://www.laptopdealsnow.com/page/core-i3 ( i will create it later, it’s not working for now.
I want to put the link on Search and Filter “Core i3” text after the radio box. Like http://dealnews.com/c49/Computers/Laptops/. How can i do this?
Thank you.
Ross Moderator(Private) September 18, 2015 at 6:53 pm #25217In S&F 1.4.3 sometimes if post meta is serialised it does not get detected corrsctly causing the issue I think you have.
S&f 2.0 is released on Monday which resolves this issue.
I’ll.update here when its out.
Thanks
Anonymous(Private) September 18, 2015 at 7:15 pm #25218In the product with woocommerce i created Custom Product Attributes “Screen” = “15”.
How can i use this custom product attribute in the Search And Filter? I can’t find it anywhere.
I just found _product_attributes in Post Meta but i can choose which product attribute exactly.
Thank you.
Ross Moderator(Private) September 21, 2015 at 9:32 am #25281Hi Adrien
I think what you need is to use the Taxonomy Field.
In WooCommerce, there are 2 ways to create attributes, either as Post Meta or Taxonomy.
Post meta is not as good for searching and trickier to set up.
If you add your attributes using the the attributes option in WooCommerce then they will definitely be setup as taxonomies, but if I remember correctly, there is a way to add them as post meta via the product edit page.
Have a look and let me know.
S&F 2.0 is out later on today which brings a lot of nice features for WooCommerce.
Thanks
Anonymous(Private) September 21, 2015 at 11:25 am #25287Hello,
I still don’t understand how to set it up. In Taxonomies i only see Format, Product Categories, Product Tags and Shipping Classes.
And in Post Meta, I see _product_attributes_ But i don’t know how to select a specific Product Attribute ( For example Screen ).
Could you please explain me exactly how to do this?
Thank you.
-
AuthorPosts