Code

Discussion on Product Filter for WooCommerce

Discussion on Product Filter for WooCommerce

Cart 18,290 sales

XforWooCommerce supports this item

Supported

This author's response time can be up to 2 business days.

8487 comments found.

hello! i have some problems when selecting a filter option.. There are 4 products pr row. When i filter something happens.. you can look here http://parkettoggulv.no/pog2016/nettbutikk/

When filtering it show one product pr row with big picture..

Hi,

I’m not seeing any filters on your page. You’re probably using AJAX when the one columned product appears, have you set your AJAX installation settings? Have you set your columns and rows in the Advanced Options? Thanks.

Kind regards,
mihajlovicnenad.com

Hello sorry about that. the filter is on again. I am using ajax , and i have set the columns and row settings.

Hi,

OK, have you set the Advanced Options AJAX Columns and Rows? If so, and it is not working please use this guide to set it up temporarily until the next update. https://docs.woothemes.com/document/change-number-of-products-per-row/

Kind regards,
mihajlovicnenad.com

Hi!
Version 5.7.0 stable and everything works quickly. But I found one bug. If you include 2 version of the filter on one page (widget+default (Advanced Options – Override the Default WooCommerce template)) then button does not work clear all filters(ajax mode+keep taxonomy permalinks).
Still I have a suggestion. Now is not very convenient to make the mechanism of visibility top bar, especially on mobile devices. How it works now: – click on the icon top bar, apply filter No. 1 – click on the top icon bar, apply filter No. 2, and so on. If you do have a top bar toogle mode, then it will be much easier: click on the top icon bar, apply No filter. 1, 2, 3, 4…. and another click on the icon to the top bar to close it. Quickly and conveniently. It would be nice if you think about it. Thank you!
p.s Setting always visible is good, but on mobile devices is not always appropriate.

Hi,

Clear All will work with the Keep taxonomy permalinks only if there are no filters of this taxonomy at the moment in the Product Filter itself. If this is the case then the clear all button must clear all selections within the filter. Do you have selected taxonomy in your filter that you want not to be cleared?

So, basically you want the filters by each to be collapsible and that can be opened when you want, right?

Kind regards,
mihajlovicnenad.com

Hello. I just installed the update 5.7.5 When I click on a category filter, then on a tag, I’d click on a category and see the results. But the results keep in mind the “tags” and therefore no results … How to automatically disable the filter tags under these conditions?

Example I go on: http://www.sda3.premium-tahiti.com/boutique/ I go on http://www.sda3.premium-tahiti.com/categorie-produit/boissons-chaudes/cafes/ I then directly uses the tag filter “coffee”: http://www.sda3.premium-tahiti.com/categorie-produit/boissons-chaudes/cafes/?product_tag=cafe-de-paris Then I want to open a new filter category (eg “Bio et écologie”) and I have no results because the “product_tag=cafe-de-paris” is kept : http://www.sda3.premium-tahiti.com/categorie-produit/bio-ecologie/?product_tag=cafe-de-paris

Is there a possibility of improving this mechanism? I think it would be helpful for everyone. Thank you

Hi,

The Show More/Less terms bug is noted. Thanks for reporting it will be fixed in a day or two. As for your second issue, I’m really not sure, it just the way it is at the moment. I’ll need to add some option to clear filters when this action is needed. I’m not sure how to do it at the moment, it will take some time to think about it. Thanks for reporting the bugs and using the plugin!

Kind regards,
mihajlovicnenad.com

Hi, Ok thank you perfect. I’ll wait for the next update.

Hello. Thank you for this excellent plugin. I’ve updated the latest 5.7.0 release. I limited the tag display “10” I am experiencing an issue with “show more” / “show less”. Clicking the button does not produce any result. My website : http://www.sda3.premium-tahiti.com/boutique/ Thank you

Hi,

I’ve answered in your other comment thread, please stay in one thread to minimize delays. Thanks.

Kind regards,
mihajlovicnenad.com

Another Problem:
When using this hook in my functions.php, I get a 500 error: change_none_text_sogja9h48hg() { return 'My text'; } add_action( 'prdctfltr_none_text', 'change_none_text_sogja9h48hg' );

Thanks. But this filter has no effect. In woocommerce ? loop ? product-filter.php line 1541-1552 “None” is hardcoded.

Hi,

Yes, you’re right. This is a bug and will be fixed in the next version. For now please change 1540-1553 with this. Thanks and sorry about the confusion.

case 'pf_attr_text':
    $curr_blank_element = apply_filters( 'prdctfltr_none_text', __( 'None', 'prdctfltr' ) );
break;
case 'pf_attr_imgtext':
    $curr_blank_element = '<img src="' . WC_Prdctfltr::$url_path . '/lib/images/pf-transparent.gif" />';
    $curr_blank_element .= apply_filters( 'prdctfltr_none_text', __( 'None', 'prdctfltr' ) );
break;
case 'pf_attr_img':
    $curr_blank_element = '<img src="' . WC_Prdctfltr::$url_path . '/lib/images/pf-transparent.gif" />';
    $curr_blank_element .= '<span class="prdctfltr_tooltip"><span>' . apply_filters( 'prdctfltr_none_text', __( 'None', 'prdctfltr' ) ) . '</span></span>';
break;
default :
    $curr_blank_element = apply_filters( 'prdctfltr_none_text', __( 'None', 'prdctfltr' ) );
break;

Kind regards,
mihajlovicnenad.com

Wonderful! thanks

Hey Mihajlovic,
When enabeling ajax=”yes” on my product page and navigating through pagination it scrolls back to the top, once the new page is loaded. This is great! However I have a sticky main navigation on my page, which overlaps the pf_arrow_inline.
Is there a possibility to add an offset to this scroll event? Where can I find the function that is responsible for this behaviour.
Thanks a lot!

Hi,

OK, Could you disable the effect and use this code in your AJAX JS/jQuery Refresh option, basically it will do the same, but you’ll be able to adjust the offset. Values 0 means that it will go to the top of the page and change it for offset you want. Thanks.

$('html, body').animate({
    scrollTop: 0
}, 500);

Kind regards,
mihajlovicnenad.com

Thanks! This one works perfect for me: $('html, body').stop().animate({ scrollTop: $('.prdctfltr_sc_products').offset().top - 50 }, 500, 'swing');

Hi,

OK, but why the stop() just change the default scroll animation to none and you won’t have to stop anything! Thanks!

Kind regards,
mihajlovicnenad.com

Hi, if I have turned off plugin and I want to search something I will get this page DOMAIN/?s=SOMETHING&post_type=product and it show products with SOMETHING. But I activate plugin and try to search something, it only open page DOMAIN/shop/ and it find nothing. Do you know, what is problem? Thank you

Hi,

Yes, go to the Advanced Options of your Product Filter and at the bottom check the Disable Search redirects option. Thanks for your patience!

Kind regards,
mihajlovicnenad.com

Hi,

I need to update the plugin manually without using automatic update.

In the download section I downloaded just “installable wordpress file”. How can I overwrite the file without erasing my filter library and data.

Thanks.

Hi,

I’ve answered your other comment thread, quite late, but it’s better ever than never :) So, for this try resaving your Permalink settings in WP Dashboard, also do try to set them up and use the Pretty Permalinks, as I’m not sure you’re using those. Contact me if you have more issues please, and sorry about the delay, hopefully you’ll understand. Thank you.

Kind regards,
mihajlovicnenad.com

Hi,

For the site it is

http://www.site.com/ornek-yazi/

For the woocommerce product permalinks, it is:

/magaza

That’s all. Do you want me to change static URL’s of the website?

Regards

Hi,

Real sorry about the delay, we’ll be more prompt from now. Please do send the direct issue link to experience the problem first handed. I’m not sure why the 404 page comes up, bit this is in the WP, server or similar configuration, hopefully we’ll find out what the issue is. Please do contact me further. Thank you.

Kind regards,
mihajlovicnenad.com

Hello, Please is your plugin able to provide this functions? 1- Be added to a widget area on a page that is not a classic woocomerce shop page? For example using x theme’s cornerstone page builder? 2- able to provide product filtering in a step by step way: Filter first attribute, then will narrow and shove second attribute, etc etc…..? Then user click a button and will be redirected to the product corresponding to the attributes selected using filters? I need something like what featured here: https://cellphoneunlock.net/. Hope you got this…. If so consider me as sold! ????

Hi,

It can be added anywhere, but this part is up to you. What is this page btw, if it is not a Shop page? You can use the Product Filter shortcodes on your regular pages to create anything you want. The full support for the Cornerstone is not available, meaning you will not get an element in the builder, you’ll need to input the shortcodes manually in your Text element.

If you want something like this http://mihajlovicnenad.com/product-filter/step-filters-custom-actions-and-adoptive-filtering/ then yes. But keep in mind that this function has just been added. It works, but as you can see we still don’t have the loader when getting back the terms, also it is not in steps, you can choose anything. Thanks for your interest and sorry for the delay, super busy over here.

Kind regards,
mihajlovicnenad.com

Hi, When I disable “always visible” – nothing happens (i’m not in arrow mode). when I check “disable top bar” – the whole filter disappears. help? thanks

http://www.outofsite.co/diamonds/?post_type=product

right now it’s “always visible” and top bar not disabled – but it i turn off “always visible” nothing changes and if i disable top bar the filter disappears.

thanks!

Hi,

You’re actually trying to use the Always Visible option with the Fixed Sidebar display which will not work. The Always Visible option works with on top filters in their default modes. Thanks.

Kind regards,
mihajlovicnenad.com

thanks!

Hi again. I used loco translate… changed few words. but its not work. Can u help me ?

Hi,

We’re caching the options from the filter. If you’ve changed the ones that are set in the WooCommerce>Settings>Product Filter then the cached ones will be used, therefor disabling the translations. This is fixed in the WPML, but in other translators it has issues. The option to disable option caching will be implemented in the next update, so you’ll be able do disable it and translate the strings the regular way. Thanks for your patience.

Kind regards,
mihajlovicnenad.com

Thank you. I resolved for me that problem. I translated in code few words.

OK,

In the next release you’ll also be able to disable this option caching and use the translations as intended. Thanks for your patience.

Kind regards,
mihajlovicnenad.com

Hello! The search form did not worked because I had a problem in my shop name base. Now it works like a charm, however the rang filter by price doesn’st work. I don t know why … all the js/css file are loaded so I don t understand why its not working.

Hi,

Are you using the 5.7.0 version? If so, just share a link and I’ll take a look. Thank you!

Kind regards,
mihajlovicnenad.com

Hi,

Yes, I see the issue. Please in the additional settings set your price ranges by stating this two parameters and also disable the Adoptive Filtering on the price range.

min:100,
max:10000

This will set your prices to low 100 and high 10000, you can further alter them, until the next update were this bug should be cleared. Thanks for your patience.

Kind regards,
mihajlovicnenad.com

Something seems to be wrong with my product filter layout since the 5.7.0 update. For the past few months it’s worked fine, I’ve been using a shortcode on my product category pages such as this: [prdctfltr_sc_products columns=”3” rows=”3” product_cat=”extreme”]. This week it was everything looked correct, in a 3×3 layout of products, but now it’s only showing one column instead of three and the products are super zoomed-in (see here: https://atxstream.com/atx-extreme-adventures/).

I’m using another layout plugin on one of my other category pages which is working fine, so I don’t think it has to do with my theme. I really like the features of your plugin so I hope I can get it fixed. Thanks.

Hi,

I’m not seeing the filter in the link you’ve sent. Also I’m not sure how you use a shortcode on a product category page, I’m not sure how you can achieve this? Can you make a temporary page where you can show me your problem. Thanks.

Kind regards,
mihajlovicnenad.com

Hi, I have a question regarding category/archive descriptions. For the categories (the default taxonomy in WordPress) I’ve added descriptions for the terms and when filtering I can see the description.

However: for custom taxonomies the description doesn’t show. When I go to the pretty permalink of the custom taxonomy term, the description does show (although with a little help from here: https://wordpress.org/support/topic/custom-taxonomies-description-dont-show-after-update#post-7904722)

Any idea how to show the description when filtering? Thanks in advance.

(I’m using version 5.7.0)

Hi,

OK, but this is custom, you’ve made custom code and I really don’t know what you’re asking? Why it isn’t working? Because it was never intended to work with custom codes, if you do custom coding here, and there, then do it till the end. How can the filter be aware of your custom code, and according to that change everything you want magically. This is just not how it goes. I really can’t help you with this. Either don’t use the AJAX option and your page will refresh and everything will be fine, and think of some other work around. Thanks for understanding.

Kind regards,
mihajlovicnenad.com

Hello,

I think you are misunderstanding me. Even without the custom code it doesn’t work. The custom code makes it possible to display a term description for custom taxonomies. Also: I’m not using AJAX.

My question indeed is: why isn’t this working (ALSO without custom code)? The text IS being displayed when navigating to https://example.com/toepassing/dak/. Is it possible to let the plugin go to that URL, and not https://example.com/shop/?toepassing=dak when selecting only one term, just like it does for categories?

Hi,

I really don’t know it’s your code, right? Also when I visit your links I get this message Example Domain – This domain is established to be used for illustrative examples in documents. You may use this domain in examples without prior coordination or asking for permission. Thanks!

Kind regards,
mihajlovicnenad.com

Hi… very HARD to understand how to customize filters. I cannot find slider mode style, few atttributes not shown absolutly.

Hi,

Thanks a lot :) Watch the outdated video for basic principles and experiment as much as possible! You can’t go wrong! Thanks for your purchase!

+ Improved Variable Product Attributes for WooCommerce 2.6.0 -- 11. May 2016.

Thank you. How to hide that fields? Show only products on sale In stock only

Hi,

Go to your WooCommerce>Settings>Product Filter and there are the options. You can hide the fields from the Filter Style section. I also suggest you to read the documentation. Thanks.

Kind regards,
mihajlovicnenad.com

Hi,

the filter is not working in the right way. when select “clear all filters” you get pushed out of the category or after that products from other categories are in this the category listed. Also when a category has a filter option, some products are not listed any more. Can you help me with this probelm?

OK,

Just one more question, do you have a selected category in your filter that you’re browsing and it is shown as selected? Thanks.

Kind regards,
mihajlovicnenad.com

jep.

Here is the problem….when you push “reset all filter” – the filter get lost on the category….also he tells you “no products found”

https://www.meinrollgeruest.de/kategorie/roll-standgerueste/geruestzubehoer/

in this category it is not possible to go to site no.2

https://www.meinrollgeruest.de/kategorie/roll-standgerueste/rollgerueste-mit-auslegern/

It would be great, when you can help with that.

best regards Manuel

Hi,

I’ve answered in your other comment thread, please be a bit patient and the issue will be resolved. Thanks again.

Kind regards,
mihajlovicnenad.com

Hello, thanks for greate plugin! How can i get URL page with of lists products already filtered? like this http://flowers-expert.ru/catalog/korobochki-s-tsvetami-i-makarunami/?price=1350-4973

Hi,

OK, really sorry for this. Yes, you can do this for every filter you want. So, for your prices it will be url.com/?min_price=20&max_price=100 or if you use the range filters you could try something like url.com/?rng_min_price=20&rng_max_price=100, categories will go like url.com/?product_cat=my-category-slug and so on. You can even use the url.com/?sale_products=on. So, basically everything is supported the best was possible. Thanks for the interest and sorry about the confusion.

Kind regards,
mihajlovicnenad.com

Do not worry, i am understand you. Can you give me URL for filtering Product attribute? (like color or size in demo: http://mihajlovicnenad.com/product-filter/widget/) about a week, I will choose the plug-in Thanks

Hi,

I’ve answered in your other comment thread, please stay in one thread to minimize delays.

Kind regards,
mihajlovicnenad.com

I have product carousel in sidebar. When I’m using filter plugin, it sorts products in sidebar as well. Could you please check it out. https://www.dropbox.com/s/p0678bw0xdq9fee/Screenshot%202016-05-14%2012.05.28.png

Hi,

Sorry I can’t see your purchased or supported badge. Maybe you’re not using this plugin. Thanks!

Kind regards,
mihajlovicnenad.com

v 5.7 is a great update, Thanks!

Hi,

Couldn’t agree more :) I’ve worked on a lot of functions and recoded almost 40% of the plugin in the past 3-4 weeks and all this made the product filter a lot better and stable. Thanks for your patience :)

Kind regards,
mihajlovicnenad.com

hi great product but - i choose “always showing” and “disable top bar” but it is not always showing and because the top bar is missing i see nothing on the page. please help. thanks. ido

Hi,

I’ve just tested these functions on my installation and they work as expected. Could you please share a link? Maybe your theme is hiding it without us knowing. Thanks for the kind words and your purchase!

Kind regards,
mihajlovicnenad.com

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey