• Resolved jellypixel

    (@jellypixel)


    Hi Marc,

    We are using this plugin for our store here: https://www.snglrtywatch.com/configure-your-snglrty/

    Today we just realized that we are getting this error when someone comes from a particular country. For context: we set this plugin alongside WooCommerce Product Price Based on Country and the plugin works fine if the country of the visitor is not detected.

    Fatal error: Uncaught Error: Call to undefined method WCPBC_Pricing_Zone::get_round_nearest() in /home/customer/www/snglrtywatch.com/public_html/wp-content/plugins/product-configurator-for-woocommerce/inc/languages.php:188 Stack trace: #0 /home/customer/www/snglrtywatch.com/public_html/wp-includes/class-wp-hook.php(303): MKL\PC\Languages->add_current_language_to_js(Array) #1 /home/customer/www/snglrtywatch.com/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #2 /home/customer/www/snglrtywatch.com/public_html/wp-content/plugins/product-configurator-for-woocommerce/inc/frontend/frontend-woocommerce.php(300): apply_filters('mkl_pc_js_confi...', Array) #3 /home/customer/www/snglrtywatch.com/public_html/wp-includes/class-wp-hook.php(303): MKL\PC\Frontend_Woocommerce->load_scripts('') #4 /home/customer/www/snglrtywatch.com/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #5 /home/customer/www/snglrtywatch.com/public_html/wp-includes/plugin.php(470): WP_Hook->do_act in /home/customer/www/snglrtywatch.com/public_html/wp-content/plugins/product-configurator-for-woocommerce/inc/languages.php on line 188

    I searched the plugin codes and saw this:

    $config['wcpbc_round_nearest'] = $zone->get_round_nearest();

    Commenting that line of code fixed it (and so I did because we don’t want the site to go down…). What I want to ask is:

    What happened? Is there a bug and is this a fix you can include in an update so we can still get update?

    Thanks Marc! You are doing an amazing job with this plugin :)!

    • This topic was modified 2 years, 10 months ago by jellypixel.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jellypixel

    (@jellypixel)

    More info: I just checked WCPBC_Pricing_Zone and I can’t see the function get_round_nearest() so that is probably an update on their part that breaks your plugin.

    Plugin Contributor Marc Lacroix

    (@marcusig)

    Hi there,

    Thanks Marc! You are doing an amazing job with this plugin :)!

    Thank you! ??

    I’ve juste released a new version with a fix. The issue was that get_round_nearest is only present in the Premium version of WooCommerce Product Price Based on Country (which I hadn’t realised).
    So sorry about the inconvenience!

    Best,
    Marc

    Thread Starter jellypixel

    (@jellypixel)

    Hi Marc,

    Thank you so much for the superb support! Keep being awesome ;)!

    Really appreciate you updating this. Thaaank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when using WCPBC Pricing Zone’ is closed to new replies.