Support » Plugin: WOOF - Products Filter for WooCommerce » woof product filter not working with w3tc autoptimize

  • Resolved elusive2k

    (@elusive2k)


    Hello,

    I have installed this plugin on the website, wich is also highly optimized using W3 Total Cache and Autoptimize.
    But it seems that the filter is not working, have tried multiple ways, automaticly submit on change, ajaxify, exclude plugin dir in autoptimze and w3tc, filter button, and so on but still I could not get it to work, while it does work on a different site with same theme but without the optimization.

    I am also seeing these errors in console:
    Uncaught ReferenceError: fbq is not defined
    at d3208.default.include.4f566b.js:93
    autoptimize_cdf1791f2cd4731432794b6e8c5008dd.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
    autoptimize_cdf1791f2cd4731432794b6e8c5008dd.js:83 Uncaught ReferenceError: woof_ext_init_functions is not defined
    at HTMLDocument.<anonymous> (autoptimize_cdf1791f2cd4731432794b6e8c5008dd.js:83)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.K (jquery.js:2)

    Hoping you could help me get your plugin to work since it is a great feature.

    Kind regards,

    Kumar

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support pavloborysenko

    (@pavloborysenko)

    Hello Kumar

    Please check option – https://c2n.me/40RM0Oy.png

    Disable the plugin that causes this error – https://c2n.me/40RMgCl.png
    and do test

    elusive2k

    (@elusive2k)

    Hello,

    Thanks for you fast response, i did found this option another post in this forum.
    I do not seem to have this option available in the product filter plugin.

    About the fbq error that seems to be the facebook connector, but i can not disable this for now.

    Hoping to hear from you, if you really think facebook is the issue here i will have to check upon our customer before i disable this.

    Kind regards,

    Kumar

    Plugin Support pavloborysenko

    (@pavloborysenko)

    Hello Kumar

    I do not seem to have this option available in the product filter plugin. – plugin settings->Advanced->Options

    if you really think facebook is the issue here – there is a possibility of this

    Thanks for you response, I did find the option now and tested this, but this did not make any difference.
    About the fbq/facebook I could not find where this is being added nor which plugin is causing this.
    We would like to buy the premium version of your plugin but it is supposed to work ofcourse, could you please have a look at this.
    If you could send me the paths/scripts I should add as an exclusion for autoptimize and/or w3tc.

    Kind regards,

    Kumar

    Plugin Support pavloborysenko

    (@pavloborysenko)

    Hello

    Try to exclude this file – \plugins\woocommerce-products-filter\js\front.js

    Hello,

    Thanks for you answer.

    I have added: wp-content/plugins/woocommerce-products-filter/js/front.js
    Into W3TC as ‘Cache exception list’ of the Pagina Cache.
    Into W3TC as ‘Never minify the following JS files’ of the Minify
    Into AutOptimize as ‘Sluit deze scripts uit van optimalisering’ (wich translates to: Exclude these scripts from optimalization)

    I have cleared all caches and CTRL+F5 the site in a new incognito window but still the same issue & console errors appaer.

    Plugin Support pavloborysenko

    (@pavloborysenko)

    Hello

    https://c2n.me/410huLE.png – for some reason this function does not start (in file – plugins\woocommerce-products-filter\index.php)

    elusive2k

    (@elusive2k)

    Hello,

    Okay, so what can I/we do about that?

    Kind regards,

    Kumar

    Hello,

    I have tried multiple things but it seems to come down to that the issue is caused just by W3 Total Cache.
    When I deactivate this plugin, your plugin is working.

    I did a lot of debugging with this plugin, and I now I have got it working including W3TC.
    Because this site was highly optimized we also choose the option in W3TC -> Minify -> HTML & XML -> (to turn on) Inline JS Minification.
    When I unchecked this option and purged all caches everything was working as it should.

    I would like to ask you to have a look at this so we can use the functionality Inline JS Minification as well.

    For now thanks for all your efforts, and by the way, we have bought your plugin, it is great to have my custom taxonomies also filterable in the store.

    Kind regards,

    Kumar

    Plugin Support pavloborysenko

    (@pavloborysenko)

    Hello Kumar

    Ok!

    Welcome and thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.