AnonymousInactive
Ok perfect, so with the new Woocommerce integration it will automatically take my Woocommerce layout/design and everything else?
Because right now with that code in the functions.php file it looks exactly like my Woocommerce archive pages.
Thanks
Hey John
You best bet to remove all the S&F code from functions.php and to follow the link I sent – much cleaner and easier 🙂
The idea is that WooCommerce integration is now super simple!
Thanks
Hi John
Please see the developer release notes
http://www.designsandcode.com/documentation/search-filter-pro/2-0-upgrade-notes/
You are getting an error because you are using a Search & Filter global that no longer exists.
$sf_form_data
has been replaced with $searchandfilter
However saying that, S&F now works on your woocomerce shop page directly – this is probably the best way to setup:
http://www.designsandcode.com/documentation/search-filter-pro/3rd-party/woocommerce/
Thanks
AnonymousInactive
I have this in the functions file –
add_filter(‘body_class’,’add_body_class_to_search_filter’);
function add_body_class_to_search_filter($classes) {
global $sf_form_data;
if ($sf_form_data->is_valid_form())
{
$classes[] = “tax-product_cat archive woocommerce woocommerce-page alt-style-default boxed-layout two-col-right width-930 two-col-right-930”;
}
// return the $classes array
return $classes;
}
line 105 is:
if ($sf_form_data->is_valid_form())
Hi 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
AnonymousInactive
In 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.
AnonymousInactive
We are using Search & Filter Pro v1.4.3
We created a simple dropdown search box based on a WooCommerce taxonomy called “Model Number”
The dropdown box displays about a hundred model numbers. But they are not in order. We would expect the list in the dropdown box to be either ascending or descending. However, if a user scrolls to the bottom of the list in the dropdown box, the model numbers are listed randomly.
Here is a link to the development site: http://holdrite.staging.wpengine.com/
How do we re-order the model numbers in the dropdown box?
Ah 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
AnonymousInactive
Hi ross, i have the same woocommerce page result problem as i mentioned in my earlier post today. Could you plz send me beta 2.00 as well.
Thank you
AnonymousInactive
I am using a search and filter pro form with filter in the left sidebar using a widget to update results on the shop page exactly the same way, at least in theory, as in demo 2 with woocommerce. I am using Customizr child theme and have installed woocommerce plugin. any ideas please.