Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,669 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8956 comments found.

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

Hi I have just purchased the pro version. However I’m expereincing setup issues.

I would like the filters to be on all of the category pages which I’ve setup.

1. The issue is that the button doesn’t work. When the filter button is pressed nothing happens.

2. The second issue is that all the filters are showing without having to press the filter button, I would like these filters to only display when the filter button is pressed.

Thank you.

Hi ovacreative1,

Thank you for choosing Filter Everything PRO.

Please fix this error first – https://prnt.sc/B_o8N0AWQ7q0

Mixed Content: The page at ‘https://v3builtytemplate.co.uk/product-category/perfume/' was loaded over HTTPS, but requested an insecure stylesheet ‘http://v3builtytemplate.co.uk/wp-content/uploads/cache/filter-everything/08ea94d06b25afc8eb9ddde6e5977258.css?ver=6.3.1'. This request has been blocked; the content must be served over HTTPS.

You can turn on “Apply Button” mode from filter set setting here – https://prnt.sc/8wSBWrKxgs_K

Best Regards,
- Victor

I have seen reading comments the different options for common WordPress pages (where to filter): https://prnt.sc/lYsMuzjz75YN

But, does it also support CPT? Because when I choose the CPT only the search results page appears, nothing more…

I have reviewed the documentation: https://filtereverything.pro/resources/filter-set/

Where to filter? You define a page or list of pages, where this Filter Set will be applied.

But it’s not clear to me if I can also filter CPT on the home page… (I created the CPT with ACF)

That’s it, I saw the answer in another comment. I had to specify a static page instead of the blog post.

1) You created a “Filter Set” and want to place it on the home page with “Apply Button” mode. (Quick note by ”Home” page you mean the page that you specified in the WordPress admin dashboard settings?) If yes, then in “Where to filter” you need to choose “Common WordPress pages” -> “Homepage”. If it’s just a page with the name ”Home” you need to choose “Pages” -> ”Home”.

Hi bcnmoda,

We are glad to hear that the issue was resolved.

Best Regards,
- Victor

Hi,

We are noticing some duplication of the main category description appearing on new filtered pages.

For example, we have a main category, with a description of the category page (appears at the top under the title) at /category/furniture

When the SEO filter is applied it creates a unique page, and meta data which is great. However, it duplicates the main category description. An example of the filter being applied to furniture being: /category/furniture/color-black – both this page and the main category page have the same description at the top. Only the main category page should have this to avoid duplication.

Is there a way to stop or remove the duplicate main category text/description showing on new filter pages?

Thank you

Hi paulsf,

Plugin speed – is fully dependent on your server. If you are facing any performance issues it is crucial to understand that the filtering speed depends on the 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)

To enhance the filtering process, you can optimize any of the parameters provided in the list above. Utilizing OPCache and optimizing the database are some of the ways to achieve this.

Best Regards,
- Victor

Hi paulsf,

Update to the previous answer.

We would like to ask you to demonstrate the page speed with the plugin enabled. You can send a link to the test page of your site. Of course, you can do it privately if you don’t want to share it publicly.

The test results could tell what specific problem is present – whether styles, JS, or images, or maybe the response speed of the web server, but it also depends very much on the server and its settings, not the plugin.

Best Regards,
- Victor

Hi Victor,

Accidently posted this as a comment, as opposed to a reply.

The code moved the SEO description to above the products, however the original WooCommerce archive descriptions are still there too. The SEO descriptions now sit underneath the filter chips.

Is there a way to amend the code so that the new description simply replaces the original description on filtered categories?

The code supplied:

add_action(‘wp_head’, ‘wpc_add_filters_seo_description’); function wpc_add_filters_seo_description(){ if( class_exists( ‘FilterEverything\Filter\Container’ ) ){ $seoFrontEnd = FilterEverything\Filter\Container::instance()->getSeoFrontendService(); $your_new_hook = ‘woocommerce_archive_description’; }

remove_action(‘woocommerce_after_shop_loop’, [ $seoFrontEnd, ‘showSeoDescription’ ], 5); add_action( $your_new_hook, [ $seoFrontEnd, ‘showSeoDescription’ ] ); }

Hello,

I’m trying to set a filter for price but have tried the suggested meta keys and they don’t work. The prices are set in Variations and are listed under Regular Price – do you know if there is a different meta key for that?

Thanks.

Thank you for the credentials, but the provided credentials don’t allow us to use the admin dashboard. It is just some type of user credentials. Can you send the ones that will allow us to use the admin dashboard? So we can actually test the filter set setting and so on.

Best Regards,
- Victor

Hi, I’ve changed the user to Administrator now.

Hi TheWebWizz,

For the purpose of testing, we have created “variable products” and included them in the “group product”, as can be seen here – https://prnt.sc/jEVoAo9V1aFb

The group product’s price is determined by the minimum price of the “variable products”. But the price slider filtering mechanism appears to be functioning properly and displaying accurate information for this “group product price”. However, it appears that in your case, this feature is not functioning correctly. This may be due to the presence of additional plugins or other factors that are causing discrepancies in the values stored in the database for these products.

Unfortunately, we didn’t identify the exact cause of this issue on your site, as it would take turning off all of the plugins, checking the database fully, and so on. Nonetheless, we can confirm that our plugin works seamlessly with a clean installation of WP with Woo and our plugin, as shown here – https://prnt.sc/w8nxpVomX_GW

Furthermore, it should be noted that if the price range slider is set to more than 60, the group product will not be displayed, as indicated here – https://prnt.sc/WmbQsv0xwkvf So in your case this may be some type of a conflict with other plugins or custom code or messed up products data in the database (which is very common while doing site migrations or other manipulations).

In general, we would advise using “variable products” instead of “grouped products” in order to accurately filter products by price. Unlike “grouped products”, “variable products” display the full range of prices, allowing for more precise filtering.

Best Regards,
- Victor

Hello, I have an issue with random numbers on the filter that aren’t proper filter names. I can share some screenshots if that helps.

You should install it without deleting the free version. But if you deleted the free version then it deleted all of the filters.

Not sure if it will fix it, but more likely we would need to check it by ourselves to understand the problem But first create a filter set with the PRO version and test it.

Best Regards,
- Victor

I have kept the free version and install the pro version and now it’s removed the filter from certain pages. Also still have the number issue.

Hi littlebigbox,

Here is what can we do, please write a list of issues you are facing, and provide the credentials to the wp-admin dashboard following this document so we can check it all and fix.

Best Regards,
- Victor

Hi,

Is this the plugin that adds the following code in the .htaccess ?

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{2,5})$ RewriteCond %{REQUEST_URI} !(.)/$ RewriteRule (.[/])$ /$1/ [L,R=301]

It blocks page from being updated in the admin area. If i remove the code out of the .htaccess, it works. I tested with vanilla wordpress installation and storefront theme.

No error appears, just the page or post does not update.

Thanks

Hi DailyLost,

No, our plugin doesn’t add anything to the .htaccess file at all. More likely this is doing some other plugin or custom code or anything else. So you need to check on your end which plugin exactly doing it and try to fix it so it won’t cause workability issues.

Best Regards,
- Victor

In Mobile view Filter apply, cancel not working properly. For first time when We click on any Filter its asking to appy. When We apply only the Programs are dispalyed. But second time when we click on anyu check box its appling directly with out clicking the Apply Programs are appearing. Can you please help me on It. URL: https://emerituslearning.com/?s&post_type=program Check in mobile View

1. Click on FIlters 2. Select on Any Topics -> Click on Cancel (result(No topics will Appear)) 3. Select on Any topics -> Click on Apply (Result(Seleted Topics will Appear)) 4. Select on Any Topics Again – It automatically Bring the Program With outAppying the Apply Button.

Check and please Provide me the solution

Hi logakarthikeyan,

We have checked the page and followed your instructions, but everything is working well as long we don’t hit apply nothing is applying from filter terms. Not sure what is the issue you are experiencing. Maybe you did use AJAX and update the whole page which can cause such issues.

Best Regards,
- Victor

After clicking the Appy button program apperaing that the wat First time its working. But At the second time when click on the Check box. Its bringing the Program automatically. Without clicking the Apply Button.

We have clicked apply as you can check here – https://prnt.sc/mvYRQ0Ad5dOe

Now we will choose some other term but click cancel – https://prnt.sc/vQbECi8Xemwn As you see, nothing has changed, now we click apply – https://prnt.sc/PGuArmUATBe0

So a bit confusing. What’s going on? Maybe we just didn’t understand the issue you are facing. Can you please provide more details on it?

Best Regards,
- Victor

Hi how to Appy the Ajax only for the Mobile.

Hi logakarthikeyan,

If the “Apply Button” mode is enabled, it will work as AJAX on mobile devices. But it will also be in the Apply Button on the desktop.

Also, you can change it with a hook so that there is AJAX on mobile devices, but not on the desktop. The option is called ‘enable_ajax’ and there is a hook ‘wpc_get_option’ that passes through all the options there you can set the desired value depending on the device for the ‘enable_ajax’ option.

Here is an example of how you can work with the hook:

// For example you need to enable it on the page with ID 123
if( is_page( 123 ) ){
        add_filter( 'wpc_get_option', 'wpc_enable_ajax', 10, 2 );
    }
function wpc_enable_ajax( $option, $key ){
    if( $key === 'enable_ajax' ){
        return 'on';
    }
    return $option;
}

You need to write your own custom code to turn it on only in mobile mode and turn it off in desktop mode. If you don’t have enough skills in PHP and WP, we can recommend hiring a developer to do it for you, using such platforms as Upwork.

Best Regards,
- Victor

Hi, I would like to display the number of results like “xx documents available”, how can I do this? Regards,

Hi matdeweb,

Thank you for choosing Filter Everything PRO.

Sure you can turn on this option – https://prnt.sc/nAjbPB3TgSOE in the widget area and here is what you will see – https://prnt.sc/K99mCqWdLAm4

Also, please check the template override documentation – https://filtereverything.pro/resources/templates-overriding/

This description consists of several parts. The word ‘found’ is in the posts-found.php file. The name of the post type is taken from the post type object that was created when it was registered. If you have enough PHP skills you can rewrite it to your needs.

Best Regards,
- Victor

Hello, is it possible to use different Filters on different product-category sites?

Hi ProdbyDaan,

Thank you for your interest in the Filter Everything plugin.

Yes in the PRO version, you can create many filter sets and place then on the needed category page, so each page will have a unique filter set.

Best Regards,
- Victor

Hey, have a problem with filtering. Please check PM, credentilas sent.

That’s strange. It should work, because it is basic woocommerce template replacement.

If I add woocommerce/product-cat.php would it work? I’m not sure, but I’ll check and let you know

It doest not help. Still doesn’t work after creating files for product cat and content-archive.

I’ve checked logs, here is an error: `PHP Warning: Undefined array key “Product query” in /public_html/wp-content/plugins/filter-everything-pro/pro/PluginPro.php on line 1850`

Maybe this is a problem? I’m using the PHP 8.2

Hi Tuskotrush,

Well, it’s not recommended to use the latest versions of PHP, in order to prevent workability issues. But we created a test on our end and here are the filter set settings – https://prnt.sc/vd4kPnjPChnt with “Any Categorie” and here are some category pages: 1) https://prnt.sc/Hcqr8TKIqMyi 2) https://prnt.sc/w0pU7mUtKUnn 3) https://prnt.sc/LK0yQQZLxClK

As you see, everything is working well on each page without any issues. But on your site, it is working differently, you can drop down to the 8.0 PHP version to see if it helps, but more likely this is the cause of the theme and how it was created. Did you migrate the site from one place to another?

Best Regards,
- Victor

Hi, I tried do move my site from hoster A to B using https://wordpress.org/plugins/migrate-guru/

I tested 2 times and when I tried it on production I received

[error] 3024#3024: *484 FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “Product query” in /home/wp/disk/wordpress/wp-content/plugins/filter-everything-pro/pro/PluginPro.php on line 1850”

In the backend on the Filter Sets page this message appeared: “This filter is inactive because it is not related to the selected post type.”

on the settings page, the url prefixes and index filters were empty

so something went wrong with products – any idea how to fix this? thank you

Hi robertklausner,

It can be quite challenging to transfer websites from one hosting platform to another. It’s important to note that any issues or errors that arise during this process are not directly related to the plugin. Rather, they may stem from the migration process itself and the settings in the database. And you are starting to see some type of errors and so on. Unfortunately, we cannot offer much assistance in this regard, as it would require a careful examination of the site to identify any migration-related issues. But this is far beyond the support policy here on CodeCanyon.

If migrating the site provides some errors, we kindly suggest that you consider configuring the filter on the new hosting instead. This will ensure that everything is properly set up and functioning as intended.

Best Regards,
- Victor

Hello, I have changed the options of an ACF and they are not reflected in the filter, the old options are still seen. Then I tried deleting the ACF and loading all the options again from the selection field, and now the filtering of these ACFs does not appear directly. What can you’re going through?

Hi Montecor23,

When you change the name (meta key) or ACF values, the old ones are not deleted from the database and ACF does not change the meta key in the database. You can manually delete everything/change it in the database or use a plugin for it. Alternatively, you can create a brand new custom field and avoid applying any changes to prevent affecting normal workability. That’s just how ACF works with the database.

Best Regards,
- Victor

Hi, I have problems with activating my license key. I have followed your instructions and pm’ed the credentials!

Hi tnhtnn,

Thank you for choosing Filter Everything PRO.

Thank you for following the instructions, please send the license key as well via PM.

Best Regards,
- Victor

Hi tnhtnn,

The license was activated and everything is working well.

Best Regards,
- Victor

Jet Engine doesnt seem to work for the filters. Can you help?

We have checked the site, and basically, you have 16 “variations products”, with a lot of variations. And you applied a meta field checkbox with options on one of those “variations products”.

Now here is the thing, You should see only a couple of “variations products” in that category of lotions if to be exact only 6. But you are displaying all of the variations of those products separately as unique products, instead of like this – https://prnt.sc/etNDPM4AD0qv when you click on the product to choose the needed variation. That’s why you don’t see any products with size since it was applied on the “products variations” and you do not display them. Actually, you don’t even need meta fields, you could create size attributes from Products -> Attributes.

Best Regards,
- Victor

Hi Victor, thank you for taking a look. Is there any way to get the meta field to be applied to the product variation? I find it odd that it isn’t applied to that. In regards to the attributes, this would mean size then becomes a variation option that’s selectable right? Not sure that would work for us as we have 6 core products. We also need all those variations display so customers can filter and find the exact model, but have the option to see all the variations

“Is there any way to get the meta field to be applied to the product variation?”

We would recommend referring this question to Woo support, as they know better if there is any way to do it and perhaps can provide any solution on that. Also, they might provide info on how you can apply some attributes to the variations only.

Best Regards,
- Victor

Hi there, I have set up your plugin and have the filters appearing fine but I am using Avada Postcards and the results are not renewing. I have played with using Ajax on and off but there seems to be no change.

I have not been able to get it to work in any way.

Have you managed to get the filter working with Avada Postcards before?

Thank you

We have checked the site and the issue is that you choose “Any Tipo” in the filter set setting but each Tipo page (category) has a unique query on it. That’s why it is not filtering and you see wrong terms and so on on different pages. We placed the Filter Set on a certain category – https://cookingchef.cookingsurface.com/tipo-receta/cremas-y-sopas/ and as you see everything is working correctly.

You need to create multiple filter sets and place them on each category Tipo page. Or rewrite the custom Tipo so the query will be the same all over each page to work correctly.

Best Regards,
- Victor

Great Victor! Everything seems to be working fine now.

Thanks for everything. Hope you have a nice day.

Arnau

Hi Arnau,

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

Hello, when i’m activating my pro license key it tells me unknown error.

Thank you so much.

Actually I have one last question, how do i active hide empty filters ?

Just enable this option – https://prnt.sc/8Siuk4oy_J5m

Best Regards,
- Victor

Hello! We’re currently on version 1.7.8 and it says there’s an update available. When I click “Update” in Wordpress, I get an error message “Update package not available.” Is this update broken? Haven’t had issues before.

Hi sw12345,

Technically it should work normally and update the plugin without any issues. But you can download the new version of the plugin here from the site and update the old one.

Please make a DB backup before updating, so if something goes wrong you’ll always have the ability to go back to the previous state.

Best Regards,
- Victor

Hi I am trying to get the filter to display on this page so that it can filter by a custom post type. I am getting the message “No one Filter Set is related to this page. You can configure it in the Filter Set -> “Where to filter?” field.”

Can i add the filter to a page that doesn’t have the posts listed?

https://agholidays.co.uk/test/

Hi alanbrysoncom,

Thank you for choosing Filter Everything PRO.

No, you can place a filter on the page without any posts on it, in your case in the “Where to filter” choose “pages” + “test”.

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