Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,666 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8955 comments found.

Hello,

This is a PreSales Question!

Deploy product filters on click, on mobile view

This is our problem:

We are using Yootheme PRO dynamic content – grid module – to display products into product categories, and on mobile view all filters are opened by default so you have to scroll down alot to see the products:

https://ibb.co/fYXVcY1 https://ibb.co/yPChGVF https://sigmapack.weblikepro.ro/categorie/shop/?cmp_bypass=clona

Is it possible to deploy product filters on click, on mobile view?

Example:

https://ibb.co/yXwBWpD https://ibb.co/zHnJkYW https://akheronparts.ro/shop/ ------------

Thanks!

Hello Victor. Please tell us what z-index/css should we use so that the mobile modal filters will display above WhatsApp icon >> https://ibb.co/whCGYQD . URL: https://sigmapack.weblikepro.ro/categorie/shop/?cmp_bypass=clona . Thanks!

Hi weblike,

We would recommend setting z-index for WhatsApp and cart icons to 10 like we did here – https://prnt.sc/-Gex9P0U7wiv and this is the result – https://prnt.sc/OEBvCOsoaeuS

Best Regards,
- Victor

It works. Thanks!

3 issues: https://www.loom.com/share/4ce90f0f37bf4b8e9b72dd4a99ba6fbc

1. Why is there a gap on mobile and how do I remove?

2. When I click a filter on mobile, the results update, however I want to select a few filters and then press the filter button.

3. An overlay appears and then the page is unresponsive unless I click it and then the overlay removes.

Please see video

Thanks

Hi customlogoshop1,

Unfortunately, the numeration will be as many products as you have, and if you use an option for variation or not, you will still get the same number of products. Because you do not display variation products as one product you display all variations separately so the option for variations is not working to provide the correct number. That’s why there is an incorrect amount of products.

Best Regards,
- Victor

Any way to customise it to display number of variations do you think? Just creates confusion on the website. Other leading brands seem to solve this issue such as clothing websites etc

Well, the sites that we had experience with, they all show variation products as one product, only when you click on it you can choose any variation. Or they simply use single products if they want to display everything correctly. That’s why they have the correct amount. But in your case, hard to tell, We can make a request to the dev team and see what information they can provide on this matter.

Best Regards,
- Victor

The CSS of the chips [fe_chips] look bad when I put the shortcode in the FSE theme templates… But if I use it directly the shortcode on a page looks fine. Is it tested and fully compatible with FSE theme templates? Functionally, it works fine, but the CSS looks bad.

https://d.pr/i/CtcCJm
I have been trying everything, and in this link that I show you, I only have two active plug-ins, ACF PRO and your filter plug-in, nothing more, so that there can be no conflict with anything. https://staging7.mejorviajando.com/filtro/continente-africa-or-america/

I have tried it with the FSE Greenshift theme, with the Twenty Twenty-Three theme and now I have it with the Twenty Twenty-Two theme. And it looks exactly the same, from what I understood that it was a problem with your plugin…

In fact, searching through comments I already saw a user two months ago richard_repetebox who also commented the same thing about the aspect of FSE issues… (Furthermore, the chips are seen vertically…)

The request has been duly noted and added to our list of issues to check. Our development team has been notified and we will keep you informed of any updates as soon as we receive them. Thank you for bringing this to our attention. We appreciate your patience and understanding in this matter.

Best Regards,
- Victor

Perfect, thank you and I’m looking forward to it.

Is there a way to add a filter through a custom property made in a woocommerce product?

Hi hakank1,

Thank you for choosing Filter Everything PRO.

“Add a filter through a custom property made in a WooCommerce product”

Can you please explain what you mean by that? Or even better send a screenshot of that “custom property” and in which way you implemented it. So we understand more clearly and provide some information on it.

Best Regards,
- Victor

Hello,

I’ve run into two issues.

Issue One

I have product filters set up via ACF fields (checkbox: Filter 1, Filter 2 (XYZ), Filter 3, and so on). My products are all checked appropriately, but for some filters (ex. Filter 2 (XYZ)) no products show up.

Checking the individual product pages, the appropriate fields are checked (ex. Filter 2 (XYZ)), but the products still do not display when filtering by Filter 2 (XYZ).

Issue Two

I configured a separate unique filter (Filter 2.1) to test if the products in question would appear under that filter. Products now show for Filter 2.1 correctly. However, now Filter 2 (XYZ) and Filter 2.1 both appear as filterable options, despite none of my products having Filter 2 (XYZ) checked anymore.

Potential Pattern?

One final note. I think I see a pattern in which filters return zero products. The defunct filters may all have parentheticals—i.e. Filter 2 (XYZ) returns no products, but Filter 2.1 returns the correct products. This might be at the heart of my issue and may need to be considered in future updates.

I would appreciate, however, a solution to Issue Two — how do I remove old, now-unused filters from my list of filterable options? I have removed them from ACF, ensured the products using these old filters no longer list them as options on their individual pages, and I’ve configured the Filter Sets to “Always Hide” Empty Terms.

Thank you.

Hi brulincleaningsolutions,

Thank you for choosing Filter Everything PRO.

Issue One

Can have a couple of reasons: 1) The names you are using are incorrect, better use (value : property) in such cases in ACF. 2) You didn’t apply it to any posts. 3) URL prefix conflict try to change it from the Filters -> Settings -> URL Prefixes.

Issue Two

When you are changing names in ACF custom fields (their meta key) delete them and so on, ACF does not delete them from the database, and it does not change meta keys in the database as well. The reason why everything is working if you create a new custom field is because it has a unique meta key that was not already in use. You need to either clear the database from unused custom fields or create a new custom field with a unique meta key.

Here is an example: 1) Create an ACF field – https://prnt.sc/AvWNTdWZ1yjp 2) Apply it to some posts and check the database – https://prnt.sc/Qkkg_9V8zPSu 3) Delete ACF field – https://prnt.sc/2G2Izxy5E9dl 4) Check the database again – https://prnt.sc/AjvuLvqUtXga

Those are all of the issues that are happening if not working with ACF carefully. Our plugin takes data from the database, so that’s why you might see some weird data that you already “deleted” but in reality, the database has all of the “deleted” data.

Also, what is the meaning of filter 2(XYZ) filter 2.1? Send a link to the page with issues and screenshots of how you create those filters 2 and 2.1 and so on.

You can remove it manually from a database or use any plugin to clean them.

Best Regards,
- Victor

Hi there. I’m currently using the Uncode theme and encountering some issues with product filtering on a custom page. Specifically, the logic using the OR in the filters doesn’t seem to work correctly, and after clicking on twice, the filtering becomes unresponsive. The only way to restore filter functionality is by resetting them using from chips module.

Interestingly, I’ve used this same theme and your plugin for another client, and it worked good.

I’ve also come across a workaround in the comments section regarding Isotope layout, which did help somewhat, but there still seems to be an issue.

Could you please reach out to me via email privately so that I can provide you with the necessary credentials to access the website? I believe this will make it easier for you to diagnose and address the problem.

Looking forward to your assistance.

Here is what you can do, add to your wp-config.php file next code:

define( 'FLRT_QUERY_TERMS_SEPARATOR', ':' );

It will change the separator in the plugin from ; to : and check if everything will start working correctly.

Best Regards,
- Victor

Hello Victor. Thank you for that. After this fix everything seems to work perfect. Is there any solution to prevent such issues without having to rely on support each time? I’m planning to buy more licenses for next projects.

Many Thanks.

Hi simon_skybox,

Well, as we mentioned this is a setting in the server or in WP that the query separator is using ; but it should not use it, so you need to find out how to change it. This is a very rare issue and actually, you are the second person with such an issue of all time.

Best Regards,
- Victor

Hello Viktor, i have a second question. Example: When im on my Shop site https://modernbedacht.de/produkt-kategorie/ueberdachung and set some Filters. It shows my Filtered Products. When I go to the bottom of that page and click on the Button “Load more Products” is Loads more products but none that I filtered for. What can i do? Thanks!

Hi ProdbyDaan,

Currently, not all “Load More” functionality is supported by the plugin. Some of the plugins for example – https://wordpress.org/plugins/load-more-products-for-woocommerce/ already have this compatibility. We are continuously working to expand the list of supported plugins that have “Load More” (Infinite Scroll) and other functionality to be 100% compatible.

So as a workaround, you can use this plugin, and everything will work correctly.

Best Regards,
- Victor

Do I have to set up something special in the Plugin, installed it, default settings, but i doesnt work too.

Hello Victor, We utilise this plugin on our store with 30,000 products, 2,500 category taxonomies and various attributes. We are currently able to use a filter powered by attributes alone, but if we enable a Product Category powered filter, and use the ‘include’ functionality to only show 15 product categories in the filter, it breaks our VPS server. When checking the transaction & SQL logs, we can see the SEO Rules functionality and filtering is still calling all 2,500 taxonomies and trying to build indexes for them all alongside creating huge SQL queries which max’s the CPU (and bring the site down).

Do you have any performance improvements coming out soon for the plugin?

Currently we’re being forced to abandon the integration as we cannot keep the server online… If you’re interested I’d be happy to share more information including screenshots and logs and the queries that slow down everything.

Best Regards, Ben

Hello Ben

Thank you for using the Filter Everything PRO.

Please, provide me with credentials to your /wp-admin in accordance with this document and with any evidences that our plugin uses too hude SQL-queries or stores too big data.

Because all SQL-queries are optimized and the plugin uses internal cache to make its work as lightweight as it possible.

Thank you. Regards.
- Andrii.

Hi, the filter works perfect, but how do I remove the   added to the label?

  • <input type=”radio” data-wpc-link=”/themes/theme-documentary/” name=”product_tag” id=”wpc-radio-taxonomy-product_tag-75”> <label for=”wpc-radio-taxonomy-product_tag-75”>Documentary  </label>
  • Thank you

    Hi thomas6791,

    Thank you for choosing Filter Everything PRO.

    Can you please send any screenshots and links to the page with the issue so we can check it? The description is a bit confusing.

    Best Regards,
    - Victor

    Hi, I would like to ask for support. I currently trying to sort the terms of a filter in a very specific order that is not ABC. How do I adjust that? I tried the Default and Term ID with no success. Can you help?

    Hi thomashubscher5,

    Thank you for choosing Filter Everything PRO.

    There is the possibility to use the ‘wpc_terms_before_display’ hook to sort terms to your needs via code modifications. More information can be found here – https://filtereverything.pro/resources/hooks/#terms-before-display-hook

    Here is an example of the code:

    add_filter('wpc_terms_before_display', 'wpc_sort_terms_as_needed', 10, 2);
    function wpc_sort_terms_as_needed($terms, $filter){
        // pa_color - is desired taxonomy
        if ($filter['e_name'] === 'pa_color') {
            // Define the custom sorting order
            $customOrder = array(
                'red',
                'blue',
                'green',
            'purple'
            );
    
            // Create an associative array to store term objects
            $termMap = array();
    
            // Populate the term map
            foreach ($terms as $term) {
                $termMap[$term->slug] = $term;
            }
    
            // Sort the terms based on the custom order
            $sortedTerms = array();
            foreach ($customOrder as $slug) {
                if (isset($termMap[$slug])) {
                    $sortedTerms[] = $termMap[$slug];
                    unset($termMap[$slug]);
                }
            }
    
            // Add any remaining terms to the sorted array
            foreach ($termMap as $term) {
                $sortedTerms[] = $term;
            }
    
            return $sortedTerms;
        }
    
        return $terms;
    }
    

    and this is the results – https://prnt.sc/pYxJUGe6tXVM

    Best Regards,
    - Victor

    Hi Victor, I don’t have much experience with programing, how do I add this hook?

    Hi thomashubscher5,

    You write the code in the functions.php file of your theme.

    If you do not have the required programming skills, we would recommend hiring a developer using a platform like Upwork to do it for you.

    Please note, that support is focused on assisting with the usage of existing features, troubleshooting any issues related to our plugin, and providing guidance on it. While we are more than happy to provide instructions, and examples on how to implement custom functionality, we are unable to write custom code or create bespoke solutions for individual users. The custom coding falls outside the scope of the support policy.

    Best Regards,
    - Victor

    Hello Sir, we have a website with variable products. Now we want to add the filter option to show the color attribute. We are designed the product listing and product archive by using elementor widget. So our concern is that if we use this plugin can we show the specific colors images in the product listing page. Like, if I choose black color then all the black color products will be in the shop page witb black color of product’s image.. Thank u

    Hi shakirshowrov26692,

    Thank you for your interest in the Filter Everything plugin.

    Unfortunately, the current version of the plugin does not have the option you are looking for. However, rest assured that it will be included in the future updates. We will notify you in this comments thread when it will be released. Thank you for your understanding and patience.

    Best Regards,
    - Victor

    Hey Viktor, is it possible to disable the POPUP Filter Widget on Desktop? I have set up the Filters on the Left Sidebar, I only need the Popup on Mobile.

    Hi Daniel,

    We have checked the site, and we added a small CSS fix in the Filters -> Settings -> Experimental -> Custom CSS

    There are some styles that rewrite the plugin styles that’s why it was displayed like that.

    Best Regards,
    - Victor

    Great thank you!

    Hi Daniel,

    I’m glad that your problem was solved.

    If it is possible I would be thankful for a positive review about the plugin here on CodeCanyon – https://codecanyon.net/item/filter-everything-wordpress-woocommerce-filter/reviews/31634508

    Thank you in advance!
    Best Regards,
    - Victor

    Hi!

    I see that your plugin slow down the experience with the usability of the site. Take a look at this page: https://fontanetonew.andstage.it/catalogo-prodotti/fontaneto/

    The filter took too much time to work.

    The site is better optimize (Siteground hosting, WP Rocket active) but the filter is too slow to work.

    Could you help me?

    Thanks!

     

    Hi sbel123,

    Well, you can optimize the static pages, etc. to make everything fly, but when it comes to the database queries and so on on the page, the server does its job relying on its hardware. If the server hardware is average and the database is not optimized the server ping rate is not the best, you will have to wait some extra time in order to see the filtered items.

    Try to turn off AJAX and check how fast it will work.

    Best Regards,
    - Victor

    Hi Victor.

    The search field within the filter works until you type more than three letters, then the live results disappear. Why is this / where can I change this? It would be nice if the visitor could type more than three letters so that they can search as specifically as possible. Thanks in advance!

    Hi Funckecreatievepartners,

    Alright, now we see the issue. When you are trying to find a filter term it is not searching correctly. There can be a couple of things that can cause such behavior:

    1) Plugin conflict, we recommend turning off all of the plugins leaving only the FE plugin, and checking if it is working correctly. If yes, turn on plugin by plugin to understand which one is causing the issue.

    2) Custom code theme code or template modifications. Remove all custom code and check the workability, change a theme to 2021 default one to check if it is working correctly.

    Following these steps, you can localize the root of the issue and remove it.

    Best Regards,
    - Victor

    Hi Victor,

    Unfortunately we are not able to turn off the plug-ins or remove custom code since these are all necessary for the website to run correctly.

    Another example: if I type in “Bank” I get two results (ING Bank and Rabobank) but miss a third one (ABN AMRO Bank). But when I hit the ‘Enter’ key, ABN AMRO Bank does show up but now the other two don’t. I tested it with other words too and I can’t find a pattern (case sensitive, spacing, etc.), it just seems random even though everything in de back-end is build the same way. Is it possible that this is a bug in the plug-in and do you maybe have any other solution?

    Thanks in advance, again!

    Hi Funckecreatievepartners,

    No, it was tested hundreds of times and was used but a lot of users, and everything is working correctly for them. We tested it on our back with the Avada theme and everything is working correctly as well – https://prnt.sc/ouI5KtaVi2aD here with a long text – https://prnt.sc/0NrFtAnrS49w here same long text just with a wrong letter to test if it will show or no – https://prnt.sc/QSDu3xPuDqDC as you see everything is working as it should.

    So it is either a plugin conflict or a custom code.

    Best Regards,
    - Victor

    I can’t find information about duplicate filter is this future is avilable or it’s comming?

    Hi tdutkowski,

    Thank you for your interest in the Filter Everything plugin.

    We have exciting plans to incorporate this feature in the near future. However, we are unable to provide a specific release date at this time.

    Best Regards,
    - Victor

    Ok, and is it possible to make a copy of the filter somehow through phpmyadmin? Or is it more complicated than that? I ask because I have a lot of filters to create and they differ from each other only in the place of occurrence and possibly some one parameter.

    Hi tdutkowski,

    The process of making a duplicate is rather complicated, and even if there are plugins available to make it, we cannot guarantee the absence of workability issues and errors. As such, we are unable to provide a definitive answer regarding its feasibility.

    If you have strong development skills, completing the task may be possible. However, it is crucial to consider potential complexities that may go unnoticed.

    Best Regards,
    - Victor

    Hi,

    I use the PRO version and I tried with “Custom Field Numeric” but I can’t find any “meta key” or “numeric taxonomy” to fill the “Meta Key” field to build a price range slider. I have a real estate listings website where the price of each listing, in listing attributes, is written as Number and set to be displayed in the filter form as Number Range . I can’t set up the price filter with “Filter Everything — Product Filter & WordPress Filter”. Is something missing, something is not set correctly? What could I do to solve this problem? Can you give me some directions?

    Thank you,

    Hi alex14012005,

    You can use links for the screenshot or you can PM us and we will send a respond so you can send it via email.

    Best Regards,
    - Victor

    Yeah, it is more understandable now, could you provide credentials to the wp-admin dashboard following this document so we can check it, if it is possible or not?

    Best Regards,
    - Victor

    New functionality?

    I have a page with a map with CPT “X” and below I have a list of post of CPT “X”. When I put the filter, I have to choose between one of the two queries, the map query or the list query.

    In the future, could both queries be chosen? So in this way, in the same filter of the same CPT it would serve to filter the CPT “X” of the map and the list of CPT posts at the same time…

    Hi bcnmoda,

    Yeah, in the future we might add anything like that. If you have the same filter sets you can place them both on the same page and choose different queries it might do the trick for you. But it wasn’t tested like that. The key here is to have the same filters in both filter sets.

    Best Regards,
    - Victor

    wooow, it works!!! I have created the two equal filters, only one with query 1 and the other with query 2. I have put the two shortcodes on the page, one hidden, and with the other filter it filters both queries at the same time!!!

    Hi, I just purchased the pro plugin but when trying to activate I get “Unknown error.” Best Marie

    The license was activated. Also, we implemented a quick CSS fix for the mobile mode in order to display everything correctly. It looks like some conflict with theme styles or any custom CSS. You can check the fix in the Filters -> Settings -> Experimental -> Custom CSS.

    Best Regards,
    - Victor

    Thanks a lot, great support!

    Hi Marie,

    I’m glad that your problem was solved.

    If it is possible I would be thankful for a positive review about the plugin here on CodeCanyon – https://codecanyon.net/item/filter-everything-wordpress-woocommerce-filter/reviews/31634508

    Thank you in advance!
    Best Regards,
    - Victor

    Hi,

    I just bought your plugin and it looks awesome but I have not gotten it to work just yet. Here is a link to see what happening: https://ontwikkelink.nl/hoc/shop/

    Basically, the filter works in the sidebar but does not show the result in the product list.

    Also, I do not get it to show up on mobile, did I forget something?

    Hope you can help me :)

    Hi qoqmedia,

    Thank you for choosing Filter Everything PRO.

    Please try to choose another query in the “And what to filter?” dropdown in the filter set settings.

    Are you using a shortcode to display the filters widget? If yes you can use the [fe_open_button] to display the filter widget button. But in general, the filter button is there – https://prnt.sc/m-UPEQnB_8k6 it is just hidden.

    Best Regards,
    - Victor

    I need to Disabled Ajax only on destop. Can you please help me on that.

    Hi if (is_search() ){ add_filter( 'wpc_get_option', 'wpc_enable_ajax', 10, 2 ); } function wpc_enable_ajax( $option, $key ){ if( $key === 'enable_ajax' ){ return ''; } return $option; } I have try to disable the Ajax in desktop and I used this code in Function.php But it’s not disable the Ajax. Can you please check and do the needfull. https://emerituslearning.com/?post_type=program&s=data

    Hi can you help me on above propblem

    Hi logakarthikeyan,

    Although this falls outside the support policy’s boundaries, We write the code for you:

    function custom_wpc_get_option($value, $key) {
        if (is_page(233) && !wp_is_mobile()) {
            if ($key === 'enable_ajax') {
                echo "DESKTOPPPPPPPPPPPPPPPP";
                return '';
            } 
        }
    
        return $value;
    }
    add_filter('wpc_get_option', 'custom_wpc_get_option', 10, 2);
    

    Best Regards,
    - Victor

    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