AnonymousInactive
Hi Ross & Trevor,
I’ve figured out how to display the WooCommerce Taxonomies now.
However when multiple checkboxes are selected only one product is displayed.
Can you help please, any suggestions?
https://uketwenty.uke.co.uk/product-category/approved-used/
Many thanks
Warren
AnonymousInactive
Hi Ross,
I have just purchased your plugin for a a WooCommerce site I’m redoing.
However I cannot seem to get product categories to show, only blog categories.
Please see below:
https://uketwenty.uke.co.uk/product-category/approved-used/
Look for **PRODUCTS** just below the dark green slab.
Btw the dark green slab is a mock-up of what I am trying to achieve.
I love the price slider etc on your demo https://demo.designsandcode.com/sfpro-woo-mystile/
Many thanks
Warren
AnonymousInactive
Hi Trevor,
I fixed the issue now, had to revert to the Woocommerce – shop and change a few things. Can close the ticket.
Thanks,
AnonymousInactive
I am creating a woocommerce site where the shop page is simply a list of categories. When someone clicks one of those categories, they are taken to the Product Archives page which show sub-categories and a list of products underneath. see here: https://www.geeksonline.com.au/store and here: https://www.geeksonline.com.au/product-category/monitors-and-displays/
What I’m trying to achieve:
On the Product Archives page, I would like to
1. add a search and filter box that can be applied to the products list. I don’t want the search results to be displayed on the main shop page.
2. I’d also like the category filter to only show subcategories of current page (not the top level categories and non-relevant sub-categories)
AnonymousInactive
Hey Trevor and Ross. Thank you for responding so quick! I’m glad this feature is coming in a few months. My clients can wait. I’ll just use the dropdown with combobox and a checkbox without using Hierarchical until this feature is added.
As long as it’s coming, it’s not a deal-breaker for me.
Just to clarify though and to make sure we are talking about the same thing. Being able to collapse and expand the Product categories in woocommerce from the frontend with a search & filter “taxonomy” field and having the “input type” set to “checkbox” with “Hierarchical?” checked is coming in V3?
If so that’s going to be a game-changer.
AnonymousInactive
Is this still going to be added to V3 and when is V3 coming? I just bought Search & filter Pro and this is a must feature for me. I want to have the option to collapse and expand categories. I currently use a plugin that allows woocommerce category widget to collapse, but I would like it all to be done through Search & filter Pro. I love this plugin btw. Keep up the great work!
AnonymousInactive
Hey Trevor,
Long time no talk, hope all is well!
I’ve got a project that I’m working on and I had an idea I wanted to run by you. Is there any way to build out multiple shop pages with entirely different S&F forms? For example I’ve got the default shop page setup with all of the product categories but I would like to make another shop page with a form for all of the service categories. The services are setup as actual WooCommerce products but they’re just categorized differently and need to be separated from the tangible products. I was able to make a separate S&F form for the service categories but I’m just not sure how to actually go about setting up a separate shop page/section for them.
Also it’s been a while since I asked so I just wanted to check – any info on v3 or specifically nested/dropdown sub-categories being implemented?
Hi Nathan
That would be nice but we don’t have a hook for that.
I would add it in, but we’re working on v3 which will rewrite a lot of underlying code, and properly implements hooks for modifications, so its not something I’m willing to add the current version.
If you wanted to hack it in yourself (there will only be a few minor releases before v3), then you add a check for your paged var in the following file:
search-filter-pro/public/includes/class-search-filter-query.php
Find the function get_page_no_from_url, and at the end of the control block you can add an elsif:
else if(isset($url_args['paged-2']))
{//
$sf_page_no = (int)($url_args['paged-2']);
}
So the function would become:
public function get_page_no_from_url($url)
{
$url = str_replace("&", "&", $url);
$url = str_replace("#038;", "&", $url);
$url_query = parse_url($url, PHP_URL_QUERY);
$url_args = array();
parse_str($url_query, $url_args);
$sf_page_no = 0;
if(isset($url_args['paged']))
{
$sf_page_no = (int)$url_args['paged'];
}
else if($this->has_url_var($url, "page")) //check to see if this is different for different langs
{//try to get page number from permalink url
$sf_page_no = (int)$this->get_url_var($url, "page");
}
else if($this->last_url_param_is_page_no($url)) //check to see if this is different for different langs
{//try to get page number from permalink url
$sf_page_no = (int)$this->last_url_param($url);
}
else if(isset($url_args['product-page']))
{//then its woocommerce product shortcode pagination
$sf_page_no = (int)($url_args['product-page']);
}
else if(isset($url_args['paged-2']))
{//
$sf_page_no = (int)($url_args['paged-2']);
}
else if(isset($url_args['sf_paged']))
{ /* sf_paged check needs to be last, because we will always add it on anyway */
$current_page = 1;
if(isset($_GET['sf_paged']))
{
$current_page = (int)$_GET['sf_paged'];
}
// little hack to stop appending <code>sf_paged</code> to urls pointing to page 1, where <code>?sf_paged</code> is appended to the current URL (and therefor automatically adding it to all pagination links)
// so if the sf_paged value equals the current pages sf_paged value, don't add it to the URL - who wants pagination linking to the current page anyway
if($current_page!=(int)$url_args['sf_paged'])
{
$sf_page_no = (int)$url_args['sf_paged'];
}
}
return $sf_page_no;
}
I will put a note to add a filter in for this in v3.
Thanks
AnonymousInactive
No, nothing! none of them!
I only added this to disable default sorting select. For testing now I have both (I commented those lines below).
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering',30 );
What do you have as the Ajax Container? The default in one of our forms (and for WordPress) is #main, but WooCommerce by default uses .products instead (but some themes replace the WooCommerce template with their own and sometimes use yet another container name.