AnonymousInactive
Hi,
I am using this plugin for woocommerce product categories. I want to know is possible to keep child taxomony terms underneath parent taxomony hidden unless hovered over or when clicked on parent taxomony.
Thanks
AnonymousInactive
Hi Ross, no joy with changing the settings you mentioned. I’m not really sure where else to look as it doesn’t seem like this is theme specific. I also tried disabling relevanssi and installed another simple plugin called Search By Product tag – for Woocommerce, and this caused exactly the same problem. I don’t know if this is an indicator where the problem might lie?
AnonymousInactive
Hi,
I want to have a woocommerce template like in your demo. In my case, i use the default-archives on blog and replace it with archive-product.php (from woocommerce), i copied the code and replace it to the loop but it seems it doesn’t work or i didn’t have placed it correctly. Can you guide me through, on how to work or play around the S&F using woocommerce template?
AnonymousInactive
Thank you Ross,
I had to resort to the following very ugly code but I will take a look at the method you suggest to see if I can come up with something cleaner and more durable…
/*
* Returns cleaned url for "Continue Shopping" button
* warning: very specific to Search and Filter Pro plugin; seems likely to break with an update
*
*/
function cur_search_url() {
$url = esc_url($_SERVER["REQUEST_URI"]);
if (strpos($url, "ajax.php") === FALSE) {
return $url;
} else {
$ending = strstr($url, "_sf");
return ('/yourpathhere/?'.$ending);
}
}
function save_search_url () {
if (session_started_wp()) {
$_SESSION['search_URL'] = cur_search_url();
} else {
session_start();
$_SESSION['search_URL'] = $current_url;
}
// Using WooCommerce sessions resulted in patchy performance, ended up using regular WP sessions
/*
global $woocommerce;
if ( isset( $woocommerce->session ) ) {
// WC 2.0
$page = cur_search_url();
echo 'saving: '.$page;
$woocommerce->session->search_URL = $page;
}
*/
}
/*
* Return URL of last search visited
*
*/
function wc_continue_shopping_on_search () {
if(isset($_SESSION['search_URL'])) {
return($_SESSION['search_URL']);
} else {
return get_permalink( wc_get_page_id( 'shop' ));
}
}
Hi Henrik
Yes this is true. I think woocommerce did an update recently which makes attributes “private” – which means the plugin cannot pick up on them.
I noticed this before and added a fix in to version 2.0 (under development) – so I can’t supply this to you I’m afraid until the release is ready..
However, I do recall recently another user on the forums mentioning that they they had to set the attributes from private to public so S&F (and other plugins) could see them.
I would try to see if this is in option in WooCommerce or if there is a fix/hack out there for it?
Thanks
AnonymousInactive
Hi,
We deleted the whole product catalog in woocommerce including everything. After rebuilding it we were about to update our filter in backend to connect the attributes once more. But we can not select any attributes now. We also tried to create a new filter but the same thing there, no possibility to select any attributes. What can be the cause of this? Is the attribute not correct created in the first place or do we do wrong when trying to select the attributes? We are frustrated, please help!
Many thanks
Henrik
AnonymousInactive
What is the short code to use woo-commerce category filter like you have in demo2 .
Maybe your theme is not using “categories” but a taxonomy called “categories” – a lot of plugins/themes do this – woocommerce for example has “product categories” but internally you just see “categories”.
Try adding a “taxonomy” field to you form, you may see what you need in that dropdown.
Thanks
Hey again,
Please check the docs here – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/display-results/
S&F doesn’t work directly with WooCommerce store page – but you must follow the instructions above to setup a new template for your search results.
Check the woocommerce demo – http://demo.designsandcode.com/sfpro-woo-mystile/product-search/ and notice the url is not the shop (http://demo.designsandcode.com/sfpro-woo-mystile/shop/)
Please also see this about setting up your search results page to look like your shop:
https://support.searchandfilter.com/forums/topic/problem-filtering-with-multiple-taxonomies-and-showing-results-in-grid/#post-13742
Thanks