• Resolved marxveix

    (@marxveix)


    Hi,

    Woocommerce price filter not showing up, it is added to widget area.

    Please help.

    Best regards,
    MarxVeix

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 34 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    Once you’ve added the price filter to the widget area, you’ll need to make sure you’re on a page that has products showing prices – here’s an example:

    Product filter
    Link to image: https://cld.wthms.co/gYcxfa

    Can you confirm that’s the case, please?

    Hi,

    I am also facing the same problem on our site (https://www.artoftimeindia.com/product-category/watches). All other widgets like “Filter by attributes” are showing but not showing “Filter Product by Price” widget.

    • This reply was modified 5 years, 7 months ago by Nikhil P.
    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there @devnp – while the problems may look the same now, it may turn out to be different root causes. Can you please start your own thread? You’re more than welcome to cross-link to this one so that we’re aware of both. Thanks!

    Thread Starter marxveix

    (@marxveix)

    Hi Hannah S,

    Other woocommerce widgets are working well, like recently looked products. I have not changed widget area long time. Before it was working, but not now. I have no idea when it went away, i have just been updating plugins, including woocommerce plugin to the latest.

    • This reply was modified 5 years, 7 months ago by marxveix.
    Thread Starter marxveix

    (@marxveix)

    Hi again,

    I did go back view woocommerce plugin releases and price filter works right away, at the moment i am at version 3.58, why it does not work with 3.62?

    Best regards,
    MarxVeix

    @fernashes: I’ve got same issue. Even change to use Storefront theme. Please check my screenshots:
    1. Frontend: https://nimb.ws/EjAyZO
    2. Backend (Widgets settings): https://nimb.ws/nly5ks

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there @woovina – while this will often seem the same across different sites, it’s much easier to troubleshoot them separately. Can you please create your own thread and cross-link to this one? Thanks!

    @marxveix – thanks for that information! If everything worked correctly before updating and then didn’t work after updating plugins/theme, then it’s likely one of the updates introduced a conflict. This is even more likely given that I can’t reproduce the problem on my end.

    This kind of problem is usually caused by either a conflict with your theme or with another plugin.
    ?
    The best way to determine this is to:
    ?

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    It sounds like a staging site could be a good idea. If your host doesn’t offer that option, we recommend WP Staging for quickly spinning up a new test site.

    Can you please let me know how that goes?

    @fernashes I found the problem, that woocommerce_db_version doesn’t update after update WooCommerce. Even click on the button Update database in WooCommerce > Status > Tools. I’ve fixed the problem by change woocommerce_db_version in the database table (wp_options): https://nimb.ws/j4VNxD

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Interesting – thanks so much for sharing that!

    Thread Starter marxveix

    (@marxveix)

    Hi Woovina and Hannah S,

    I can see it in your picture, but how to find woocommerce_db_version from my panel?There are other options, but i do not have no woovin, niche, woocommerce_db_version in my phpMyAdmin. New woocommerce 3.63 update did not fix it and update database from woocommerce->status>tools did not fix it also. It seems to me that 3.6x versions are not working well, i can go back to previous versions and then it works.

    I can try do disable all plugins, but why it works with previous woocommerce versions without chaning no other plugin, just 3.58 or more older woocommerce?

    Best regards,
    MarxVeix

    • This reply was modified 5 years, 6 months ago by marxveix.

    @marxveix: You can open this file: wp-content\plugins\woocommerce\includes\widgets\class-wc-widget-price-filter.php (line 68-70) you will see this code:

    if ( version_compare( get_option( 'woocommerce_db_version', null ), '3.6', '<' ) ) {
    			return;
    		}

    That’s why Widget Price Filter doesn’t show on your website (because version of WC in your website is < 3.6). You can add this code into the file function.php of your theme to fix this problem:

    function update_woocommerce_version() {
    		if(class_exists('WooCommerce')) {
    			global $woocommerce;
    			
    			if(version_compare(get_option('woocommerce_db_version', null), $woocommerce->version, '!=')) {
    				update_option('woocommerce_db_version', $woocommerce->version);
    				
    				if(! wc_update_product_lookup_tables_is_running()) {
    					wc_update_product_lookup_tables();
    				}
    			}			
    		}		
    	}
    add_action('init', 'update_woocommerce_version');
    Thread Starter marxveix

    (@marxveix)

    Hi Woovina,

    Thank you, now it works again without any plugin change. Now it is Resolved for me ??

    With gratitude and love,
    MarxVeix

    @woovina you saved my day!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @uortan Why are you reporting topics?

    @woovina God bless you…Thanks so much! I truly works for me…

Viewing 15 replies - 1 through 15 (of 34 total)
  • The topic ‘Woocommerce Price Filter Not Working’ is closed to new replies.