• Resolved ceomybunny

    (@ceomybunny)


    Hello,

    I have installed the plugin which worked great a while ago. Unfortunately, after an update, the plugin only changes the currency but does not re-calculate the prices anymore when I switch the country.

    For example: The product price is set to 200 Euro (euro is the woocommerce basic setting). If I log in as a user from Denmark, I should see the price recalculated from 200 EUR to DKK (x7.44 set in the zone). However, the plugin shows 200 DKK instead of the correct 1488 DKK.

    Additionally, from time to time I receive a fatal error notification for your plugin from WordPress and my site does not load anymore.

    I hope you can help me and fix this error.

    Many thanks!

    • This topic was modified 3 years, 2 months ago by ceomybunny.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    what’s the error message?

    Plugin Author Oscar Gare

    (@oscargare)

    Hi @ceomybunny
    I need to know the error message to help you solve the problem.

    Thread Starter ceomybunny

    (@ceomybunny)

    Hi @oscargare,
    Sorry for my late reply. Please find the error message below:

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.8.2
    Current theme: ChildTheme (version 3.7.3)
    Current plugin: WooCommerce Price Based on Country (Basic) (version 2.0.30)
    PHP version 7.4.25
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 248 of the file /home/SITE/public_html/wp-content/plugins/woocommerce-product-price-based-on-countries/includes/class-wc-product-price-based-country.php. Error message: Uncaught Error: Class 'WCPBC_Product_Sync' not found in /home/SITE/public_html/wp-content/plugins/woocommerce-product-price-based-on-countries/includes/class-wc-product-price-based-country.php:248
    Stack trace:
    #0 /home/SITE/public_html/wp-includes/class-wp-hook.php(303): WC_Product_Price_Based_Country->init_plugin('')
    #1 /home/SITE/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #2 /home/SITE/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #3 /home/SITE/public_html/wp-settings.php(441): do_action('plugins_loaded')
    #4 /home/SITE/public_html/wp-config.php(76): require_once('/home/SITE/...')
    #5 /home/SITE/public_html/wp-load.php(50): require_once('/home/SITE/...')
    #6 /home/SITE/public_html/wp-admin/admin-ajax.php(22): require_once('/home/SITE/...')
    #7 {main}
      thrown

    Thank you for looking into this.

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,

    The required file “/includes/class-wcpbc-product-sync.php” is not in your plugin installation directory.

    You can update the plugin manually via FTP to solve the problem:
    https://www.wpbeginner.com/beginners-guide/how-to-manually-update-wordpress-plugins-via-ftp/

    Thread Starter ceomybunny

    (@ceomybunny)

    Hi Oscar,

    Thank you for your reply. I have followed the steps and the file is now available in the directory. Unfortunately, the plugin is still not working correctly and does not recalculate the prices when changing the country. It keeps changing the currency only.

    What else can I do?

    Many thanks!

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,

    What’s the type of product? Note that the Basic version only supports the default WooCommerce product types.

    Try to deactivate the plugins that also modify the product’s price, like discount plugins or a product add-on plugin.

    Thread Starter ceomybunny

    (@ceomybunny)

    Hi Oscar,

    It seems like I have this problem with appointable products in Woocommerce.
    Simple products and simple downloadable products seem to work.

    I’m not using any discount or product add-on plugins. But I’m using WCFM-multivendor and BookingWP plugins.

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,

    Price Based on Country does not include compatibility with the BookingWP plugin.

    To allow users to work with bookable (appointable) products, the Pro version includes compatibility with the “WooCommerce Bookings by WooCommerce” plugin, and its free Accommodation Bookings mini extension.

    I can’t solve the issue. Open a ticket to the BookingWP support.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error price calculation after country switch & Fatal Error’ is closed to new replies.