Hi Anton
Is this from WooCommerce? You need to set the attributes as public
within woocommerce…
The next version of S&F will bypass this and make it available regardless of whether it is public.
Thanks
AnonymousInactive
Hello Ross,
I purchased Search and Filter Pro today. I’m trying to get it to work properly with this Woocommerce category accordion plugin. http://codecanyon.net/item/woocommerce-category-accordion/7117371
What i want to do is to use that accordion plugin to display all the main and sub categories in top of the sidebar.
Example (right sidebar): http://demo.techieresource.com/plugins/woocommerce/shop/
And use Search and Filter Pro to filter between two custom registered taxonomies, brand and Type. (These are registered within the Woocommerce product category).
The accordion menu works fine. When i browse to a category or sub category the accordion stays open like it should. But when i click on a filter term it searches the products, but the accordion is closed after that. This is (most probably) because the URL changes to something different when filtering with Search and Filter Pro.
An example:
http://www.site.nl/product-category/main-category (Accordion open)
http://www.site.nl/product-category/main-category/sub-category (Accordion open)
After search with Search and Filter Pro
http://www.site.nl/product-category/?_sft_brand=fastfender (Accordion closed)
Is there a way to make this work, hopefully without customizing the plugin?
Hope you get the idea. If you need more info, please let me know.
Looking forward to your response.
Regards,
Laurens
Hi again
Price is usually saved as post meta, so I would take a look here:
https://codex.wordpress.org/Function_Reference/get_post_meta
This should be great for getting the price (the key is likely _price
or just price
).
Also, a quick google shows this:
http://www.agdesignstudio.co.uk/woocommerce-get-product-regular-sale-price-custom-loop/
This will require some small adaptation to work in the template .
Thanks
AnonymousInactive
Well I use your filter for woocommerce and the website has around 2000 products. Would that be enough?
I’m lookig forward to your mail!
AnonymousInactive
I have some fields that are multiselect or checkbox fields that are serialized in the database. I’m trying to use these fields on the front to search the meta of those products. I am using ACF and Woocommerce. I have checked the fields to make sure they are simple names, and they are. When I set up the search details in the admin I am using the auto-suggest and it finds the terms but when you go to search it returns nothing. Is there anything I can do to make this work. This is the only plugin I’ve found that says in the description that it will search serialized data.
This is kind of urgent.
here is a link to the page I’m having problems with
http://woocommerce-6989-15431-36602.cloudwaysapps.com/shop/
AnonymousInactive
Thanks so much for your help. The new woocommerce functionality sounds great.
I attempted to figure out the different page templates being called, but found all pages seem to use the same class post-type-archive-product.
However I did find this solution and attempted to follow it (I’m using Avada):
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/#h-bad-template
I couldn’t find the code snippet mentioned in search.php, so I assume Avada has updated that code.
Any chance you happen to know how to fix this issue in Avada? I seem to have 3 states for my shop page
1) Landing page, without filters selected (small icons)
2) select filters, results are formatted using archive.php, (medium sized icons)
3) unchecking filters brings up a third display which is not good
In the end, I just want all 3 states to display as LIST before and after filters are selected (once I figure out how to do that). Any help is greatly appreciated!
Thanks!
Michelle
Ah not yet…
You must specify the results template.
If you are using WooCommerce then let me make a suggestion which I know has helped me in the past.
Check the classes that are applied to the body tag on your shop page and also apply them to the search results page:
https://support.searchandfilter.com/forums/topic/woocommerce-integration/#post-9931
I haven’t mentioned this to anyone yet, but I am working on much better woocommerce integration, ie, where you just drop the widget on your shop page and everything automatically works 😉
Can’t give a timeline on that yet but some updates I’m working on right now will help move this forward.
Thanks
AnonymousInactive
Perfect, thanks Ross! The conditional test worked perfectly.
I am using a custom template and shortcode to display the results, but because of the global override I’m using for Woocommerce to display rows of 3 for everything else instead of 4, the only way to get the search and filter results to ignore that override seems to be using a conditional test.
Cheers!
AnonymousInactive
Hi Ross,
any clou on that?
Additional info: It is again the WPML Translation Management, which causes the error. As soon as I switch this plugin off, the search works fine. But sadly Woocommerce Multilingual does not work wihtout this plugin, so this is no option.
This site is live, and my client not happy with these nasty error messages, so I would need a rather urgent solution…
Thanks
Klaus
Hi there
Woocommerce categories are actually custom taxonomies – so add a taxonomy field to your form.
If the taxonomy “Product Categories” is not there, then in Woocommerce you must change a setting so that woocommerce categories and tags are set to public not private.
Thanks!