Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 16,182 sales
Recently Updated

Stepasyuk supports this item

Supported

This author's response time can be up to 1 business day.

9138 comments found.

Hi!

1. What are the options for speeding up the work of filter pages for 100-200-500 000 products?

2. How to disable recalculation at the moment every time an attribute is selected?

Hi yankahomina

1. Performance problem. Filtering speed depends from next parameters:
- server CPU
- server RAM
- number of posts to filter
- number of filters and terms
- number and quality of plugins you use
- cache adjustments on a server
- plugin’s code optimizations, internal cache (this was already done for the Filter Everything)

So you can increase the speed of the filtering process if you optimize one of several parameters from the list above.

2. For the moment unfortunately you can not disable recalculation count of posts related to a filter term because when you use “Apply button” and if you do not recalculate it may often generate empty filter intersections. For example you select 3 filters and click on “Apply ” button and you will get 0 posts found. After you try to select another filters and again get 0 posts. To avoid such situations recalculation must be present and empty filter terms should be hidden in process.

But from another side I understand that it is not convenient in situations, when there are a lot of filters, posts and it may take a long time. So I’m planning to improved this moment in the future plugin updates and make this recalculatoin disabled optionally or to work instantly.

Can you tell us how to solve this issue on our own? for us it is critical

Hi yankahomina

I would be glad to help you more with this. But unfrotunately this is something that depends from your server and website config and it is not included the item support scope here on CodeCanyon. Please, try to check your sevrer and website with the points above and you can find what would be changed/optimized quickly.

Hello, Is it possible to create checkbox filter named ‘Useful groups’ that will contain options like:

1. On sale (product that have sale price)

2. New products (product that have been added last x days)

3. Show unavailable products (products that are out of stock)

4. Fast shipping (products with custom field, eg. “meta_data” -> key=”delivery” value=”fast shipping”

What do you think about this? Is it possible in atleast some extent?

Hi Stepasyuk, great plug-in! Does your plug-in support a search text field? I created one filter for a custom field, another for a custom taxonomy, and I’d like a third that is a text box that can live filter items by their title. Thank you.

Excellent, looking forward to it. Do you have an approximate release date for this?

I’m not sure, but I think this will happen in period from 2 weeks up to 2 months.

Hello aaronbowden

I’m glad to inform you that built-in Search Field compatible with filters, AJAX and that allows you to search Woo products by SKU was added to the latest plugin version 1.7.8. You can update it automatically if you have activated your License key or download zip here on CodeCanyon.

Thank you. Regards.

Hello,

Can you provide me the solution to display the filters horizontally at the top ?

Hello Paul2411

Thank you for purchasing the plugin.

Just enable ”Horizontal layout” in the Filters widget. Please, see – https://prnt.sc/tdEPx0b2oLI-

Or if you use shortcode – [fe_widget horizontal="yes" columns="3"]

Hello, I would like to use the AJAX filter function for my site. I bought the Pro version so I can use it on 2 subpages. However, I use a Load More button at the same time. I have already tried to disable this but the Ajax filtering still does not work for me. Can you tell me what the reason is? I have not found any ajax error or anything else. I have also read through the documentation to possibly find the error, but unfortunately I can’t find anything.

Best regards

Hello rittler

Thank you for using Filter Everything PRO.

In general your support period has been expired, but as it is your first request I will help you.

Please, provide me with link to the page, where you tried filtering via AJAX, but it does not work. You can optionally send the link via PM, but please let me know here in this comments thread, that you did it.

Thank you.

Hi I have put a filter here https://whitedesign.ro/colectii/usi-interior/ the first 2 filters are working ok The one under material does not show any result although is counting the correct no of posts. Can you please help me?

Hi vdinica1

Ok, thank you for extending the support.

Please, send me credentials to your /wp-admin in accordance with this document I will check it myself.

Thank you.

Hi Stepasyuk, credentials are sent on pm, Thanks again!

Hi vdinica1

Thank you for your credentials. I checked your site and realized that there were no any problems with the plugin, but data on your site were messed up. You created several ACF fields for Material – one with meta key “material”, another with meta key “material_u”. They were different types of ACF field and now your posts contain data from both fields.

In general the problem is that if you update/change ACF field, you have to edit/update all your posts to update Custom Field values inside them. It means you have at least open every post in edit mode and just update it to update field values.

Now it works find, please check it here – https://whitedesign.ro/colectii/usi-interior/material-lemn/

If you will have any questions, please let me know.

Thank you.

Hello, a pre-purchase question (we are migrating to WooCommerce).

We are currently using Shopify www.alexismote.no where we use a size filter based on tags: 40, 42, 44, 46, 48, 50, 52, 54, 56, 58. They are different from the size attributes but each variant has a tag based on the size attribute.

Attribute: Tags used by filter: 50 50 58 58 42/44 (S) 42, 44 44/46 (1) 44, 46 42-50 (OS) 42, 44, 46, 48, 50 42/44 (1XL) 42, 44

and similar.

The idea is to use a combination between our “generic” sizes for filtering purposes while also showing the customer which size it actually reads inside the garment.

Our have set our filter to use tags. It will also only show products where the particular attribute is in stock. So if the customers filters for size 46, it will show any product that has the tag 46 but ONLY if it is stock.

Is this possible in WooCommerce and with your filter as well?

Hello DanielHolmberg

Thank you for your interest in Filter Everything PRO.

Yes, you can create filter by Tag (or any WooCommerce attribute) and it will show your numeric sizes – 40, 42, 44, 46, 48, 50, 52, 54, 56, 58.

If you want to create groups with sizes – XS, S, M, L, XL you have to either to create second attribute “Size 2” and attach to your products these XS, S, M, L, XL terms. Or you can write custom code using Filter Everything functions, that generates these sizes based on numeric sizes.

About “In stock” products – you can create separate filter by stock status as in this example – https://demo.filtereverything.pro/example/by-stock/ and visitors can select to show only “In stock” products or all products.

Also I have plans to add to the plugin feature that automatically hides “Out of stock” products if appropriate checkbox activated in the WooCommerce settings (WooCommerce -> Settings -> Products -> Inventory -> Hide out of stock items from the catalog) But when exactly this will happen I can’t say for the moment.

Hi, Stepasyuk

I am still having an issue with the filtering. You were able to help me with it and I thought it was working fully but it only worked for the shop page itself but it didn’t work for the other categories that I have. The WP login info I sent you through the link you sent me is still the same. https://thriftingsimply.com. If you need it again let me know and I can send it to you again.

Thank you

Hi illmaticmix

I checked your site and realized that you created individual Elementor templates for your Product category pages. In this case you have to create individual Filter Sets for every such Product category as Filter Set can be configure to use single WP_Query.

I created one example for the “Girl’s Clothes” category.

By default Product category pages use common (Main) WP_Query and in this case you can use single Filter Set for all them. When you have individual WP_Queries for every Product category, you have to use individual Filter Sets respectively.

It all works perfect and now I understand more about the plugin! I appreciate it!

Great. I’m glad that now it works for you :-)

Hi Spepasyuk, i need php code because php is miliseconds faster than shortcode.

Can you pls write down how i can display this filter widget:

[fe_widget id=”1” horizontal=”yes”]

<?php

// Place this code in your theme file, // where you need to show chips (selected Filters terms)

if( function_exists(‘flrt_chips’) ){ flrt_chips(true); } ?>

best regards

Hi jooee

It should be code like this:
$arguments['id'] = 1;
$arguments['horizontal'] = 1;
the_widget('\FilterEverything\Filter\FiltersWidget', $arguments );

But I recommend you to find in the plugin’s code (wp-content/plugins/filter-everything-pro/src/Admin/Shortcodes.php) method “widgetFilterEverything” and look at its body. It will give you understanding how to dispaly it in PHP with various arguments.

Hello, When trying to update the PRO plugin I get this error: Update package not available Updating from 1.7.4 to 1.7.5 then the update disappears and reapers the next day and same error.

Hello aunalatvija

Thank you for using Filter Everything PRO.

Please, try to update it now, I have fixed the issue and now it should work correctly. If not, you always can download the latest verison zip for this page https://codecanyon.net/downloads and update it in /wp-admin -> Plugins -> Add New -> Upload plugin -> Override current version with new.

using pro – desktop filters all ok – setup on mobile – pop up ok filters show however when i press show it doesn’t actually filter anything and shows all posts. The filters are added as shortcode in my custom theme sidebar.

ignore this, was me being dumb – had part of page hidden on mobile so not filtering. Sorted now, thanks

Hello fastworld

I’m glad that your issue is already solved. Thank you for notification about that :-)

We have setup a shop section on our homepage and added a sidebar so we could have a filter function for our products.

We have created a filter set that contains the product attributes such as color size and material. We have also added filter for the pricing.

We have tested it and everything is working except for the pricing

We have followed the instruction on the demo site but I’m not sure why the meta key is not detecting the product prices.

Can you help us with this please?

Thanks!

Hello romerorichmond

Thank you for using the plugin.

In general if you use WooCommerce and you set meta key “_price” it should work. Maybe you use another Shop system (not WooCommerce) or you have some plugins that allows you to work with prices and they store prices in Custom fields with another meta keys. The best way is to check post meta fields of your products in database and you will find where exactly prices are stored and to use correct meta key. Also the problem may be in JavaScript errors on your site and that’s why Range slider does not work. Try to check range filter without range slider. If it works, it means you have some JavaScript errors on your site.

How to set price rage filter?

I have followed the YouTube, below URL Guide found the price rage filter option. but not fetching meta key automatically.

https://www.youtube.com/watch?v=g1_qlJvNdsg

Please find the URL for your kind reference : https://prnt.sc/V027-SpwJNXt

In my WordPress back-end not fetching the meta key automatically

Let you help how to find the custom field meta key? or else help me better way fetch the meta key automatic option in your Plugin.

Regards Prabanjan

How to find out meta keys? I am not a developer please help.

Found It the Price range filter options, thanks for your support!.

Hi prabathame

I’m glad that your issue was solved :-) Thank you for notification about that.

Hi, I hope you doing Well!

I Like your Plugin very much, That’s why bought it.

I need a help, how to set custom field filter?

I was bought APS Product Plugin : https://codecanyon.net/item/arena-products-store-wordpress-plugin/8674943

I need custom filter from this third party plugin

For example lookup URL : https://demo.webstudio55.com/arena/product/htc-10/#aps-offers

And lookup the URL Front End: https://prnt.sc/8Fxlv4992JbI Back End : https://prnt.sc/s7kGxEAyvlI_ https://prnt.sc/T3m7rvxEHVJR

Let you guide me how to set the filter store wise affiliate link?

https://prnt.sc/OZbwS8Cir5fY please lookup the snapshot image. is possible make your filter option mobile view? I have configure the filter option in mobile view, but when i click on only, it’s pop up. but need set default mobile view sticky filter option as above url snapshot. please help me.

One more query : how to add color swathes and Image icon in filter? https://prnt.sc/lMX4FjQFyQ0R

Hello prabathame

The common instruction about how to create filters you can find in this article – https://filtereverything.pro/resources/quickstart/

To have button that resets already selected filters you have to insert Chips widget (or shortcode) on the page with filters. Please, see – https://filtereverything.pro/resources/chips-widget/

To enable and use Color swatches you have to check this article – https://filtereverything.pro/resources/brands-and-color-swatches/

I would be glad to help you more with filters on mobile devices, but support here on CodeCanyon does not provide help in the plugin installing, setting up and customization. Please, look on this article what exactly support provides and what does not provide – https://codecanyon.net/page/item_support_policy

Thank you. Regards.

Hello,

I created 2 filters. The first one is displayed on a custom post type archive ( https://rizgq.skipdns.link/data_type/megethi-agoras-ergasias/ ). The second one is displayed on a single page, with the intention to use it as a search form which leads to the custom post type archive. It seems that they cannot work at the same time, I have tried to adjust the “Where to filter” option ( https://rizgq.skipdns.link/test-22/ ). How can I do that?

Regards

Hello saywowgr

Thank you for purchasing Filter Everything PRO.

As I understood your goal is to lead the second Filter Set to the first page in your example. You have to enable “Apply button” mode and as “Alternative Location” select “All archive pages for this Post Type”. In this case the page, that WordPress function get_post_type_archive_link(); returns will be page with filtered results.

In case if it does not direct you to the desired page, you always can change it via hook apply_filters( 'post_type_archive_link', $link, $post_type ); to the page you need.

Hi I just bought the pro version, & somehow the properties are not being updated according to filters. Please have a look https://beisee.co.uk/all-listings/ Thanks a million

Hi moshef3

Thank you for using the plugin.

It is known and popular issue. Possible reasons are:
- Wrong WP_Query selected in the “And what to filter?” field of the Filter Set. Please try to experiment with different WP_Queries in the dropdown.
- Cache issue (WP_Query is cached). You have to check and maybe disable your cache plugins or modules in your hosting provider dashboard.
- AJAX enabled but wrong value for CSS id or class of the Posts Container specified. Please, disable the AJAX feature, until you will ensure that filtering works in general.

-
FYI – I see your previous request about RTL, but I’m still trying to find solution and it requires some time.

Is it possible choose a filter to be preselected when someone lands on the page?

Hello R3nderBoy

Yes it is possible, but only via URL with filter’s part in it. For example – https://demo.filtereverything.pro/product-category/electronics/laptops/brand-acer/ram-16-gb/

Hi Stepasyuk, me again. So I have now bought support and having this strange issue. The filtering for search result archive pages has stopped working completely. The sidebar shows only empty filters, also the sorting does not work. The filtering does work correctly everywhere else. I’m 100% sure it has worked in the past. I suspect this is happening since the new 1.74 / 1.75 update.

I have tried several ‘Where to filter settings’, but the one that was working was just common wordpress pages and all archive pages for this post type.

Do you maybe have the old file so that I can check? So far I have tried removing all custom templates, reverting back to stock parent theme, revert parent theme to previous version and disabled plugins. Nothing works, I really feel this is in the plugin.

Oke, so after a lot of debugging the sorting issue is because of a filter template change (my bad) and the not filtering was due to cache (browser and server). Everything works again as expected. I do have one last request regarding this issue, I’m sure that your plugin has worked with the search plugin in the past. Could you please provide met with filtereverything 1.7 & filteverything 1.7.1? Then I can check if this is true. Thanks again

Sorry again, there was another error in chips.php. Turns out your plugin is already compatible with the search plugin. Maybe good for you to know ;). Sending the old versions is no longer necessary. Maybe you could add the edited templates to changelog?

Hi DannyvanderTak

It’s a good advice to note in changelog about changed view templates. I will do it in next plugin updates.

I’m glad that your issue is already solved :-)

Hello, I have a problem with the plugin when I switch to mobile. The button displays correctly but when I click on it I get a change with the background darkening but I don’t have any filters appearing do you know why?

I have sent you the link to the page and the access to the site in admin if needed.

best regards

Hello Nico313

Thank you for using Filter Everything PRO.

I checked your site and realized that Filters widget is placed in the widget area that is hidden on mobile devices. This is the reason, why you don’t see it when you click on the button to open them. You have to either to make this sidebar visible on mobile devices or to place Filters in another widget area that is not hidden on mobile. I’ve sent you example with visible Filters widget in email.

Thank you.

Hello Stepasyuk,

I moved filters to widget area visible on mobile and it work great.

Thank you.

How do i show a name or label for ACF true / false checkbox options? Currently shows 1 and 0. thanks

Hello fastworld

Thank you for using the plugin.

If you need to display ACF field labels instead of values, you can add to the functions.php of your active theme appropriate code from examples below. You also have to edit this code in accordance with your ACF field meta key(s). Here are these codes:
1. ACF field is Taxonomy object – https://gist.github.com/wpserve/0634299bcc67d03bef77119dd20c86e7
2. ACF field is field with choices – https://gist.github.com/wpserve/48277fc0320239d05b1d6e2c4da3db20
3. ACF field is post object – https://gist.github.com/wpserve/a9a58cb8a37be1472ded53296147cc56
I hope this will help you.

added code from 2. in functions file added ACF field keys and does not work. Still get a 1 or 0. I am trying to add a labels for the true/false field i have in acf. The true/ false i want to show are in a field group and the code for that doesn’t work either?

Ok, try please to insert next code in the functions.php of your active theme:
add_filter( 'wpc_filter_post_meta_term_name', 'wpc_truefalse_checkbox', 10, 2 );
function wpc_truefalse_checkbox( $term_name, $e_name ){
    // Replace 'test_truefalse' with your field meta key
    if( $e_name === 'test_truefalse' ) {
        if( $term_name === "1" ) {
            $term_name = 'True';
        }

        if ( $term_name === "0"  ) {
          $term_name = 'False';
      }
    }

    return $term_name;
}
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