• Resolved mikeemvee

    (@mikeemvee)


    Hi there,

    I’ve enjoyed the lite version for a while now – however now that I’m using WooCommerce Product Search

    As soon as I activate WooCommerce Product Search, your WooCommerce Product Table (Lite) stops functioning correctly.

    Unfortunate ??

    – Mike

Viewing 1 replies (of 1 total)
  • Plugin Author WC Product Table

    (@wcproducttable)

    Hi Mike,

    Thank you for using WCPT ??

    I tested it with WC Product Search plugin, and indeed there was an issue. The WC Product Search plugin modifies product queries on the site which causes WCPT to break down.

    I will add a fix for this issue in the next version of the plugin.

    However, for now please you can fix it on your site by using the following in your child theme’s functions.php (if you are familiar with PHP):

    
    // makes wcpt compatible with wc product search
    if( ! function_exists( 'wcpt_compatibility__woocommerce_product_search' ) ){
    
      add_filter('wcpt_query_args', 'wcpt_compatibility__woocommerce_product_search', 10, 1);
      function wcpt_compatibility__woocommerce_product_search($args){
        remove_filter('pre_get_posts', 'WooCommerce_Product_Search_Service::wps_pre_get_posts', 10);
        return $args;
      }
      
    }
    

    Please let me know in case you have any difficult with this. Contact via the support form here.

    Just FYI – WCPT PRO‘s archive override facility lets you replace product grids with tables on the shop / category / attribute / tag / search pages automatically. However, WC Product Search is not compatible with WCPT PRO’s archive override facility because WC Product Search does not offer an option to disable AJAX. In case you think of upgrading to WCPT PRO and need advanced filters here is a compatibility list. It includes other woocommerce product filter plugins that are compatible with WCPT PRO. Leaving this here for other users as well.

    Regards,
    Kartik

Viewing 1 replies (of 1 total)
  • The topic ‘Incompatibility with WooCommerce Product Search’ is closed to new replies.