• I am using this plugin to hide particular product in particular country.
    But the plugin gives an error for particular settings.
    Follow steps to replicate the issue.
    1) Go to Woocommerce >> Settings >> Booster >> Product Visibility by Country >> Modify Query. https://prnt.sc/j60duy
    2) When above option is enabled then the front site gives an error
    Fatal error: Uncaught Error: Call to undefined function wc_format_country_state_string() in /var/www/html/wp-content/plugins/woocommerce-jetpack/includes/functions/wcj-functions-country.php:21 Stack trace: #0 /var/www/html/wp-content/plugins/woocommerce-jetpack/includes/class-wcj-product-by-country.php(233): wcj_get_country_by_ip() #1 /var/www/html/wp-content/plugins/woocommerce-jetpack/includes/class-wcj-product-by-country.php(138): WCJ_Product_By_Country->get_country() #2 /var/www/html/wp-includes/class-wp-hook.php(286): WCJ_Product_By_Country->product_by_country_pre_get_posts(Object(WP_Query)) #3 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /var/www/html/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #5 /var/www/html/wp-includes/class-wp-query.php(1634): do_action_ref_array('pre_get_posts', Array) #6 /var/www/html/wp-includes/class-wp-query.php(3230): WP_Query->get_posts() #7 /var/www/html/wp-includes/post.php(1704): WP_Query->query(Array) #8 /var/www/html/wp-content/ in /var/www/html/wp-content/plugins/woocommerce-jetpack/includes/functions/wcj-functions-country.php on line 21

    However when I uncheck the option site is working fine.

    Please help.

    I am using WordPress 4.9.5 and WooCommerce 3.3.5

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

  • The topic ‘Product Visibility by Country >>Modify Query option not working’ is closed to new replies.