• Hi, my site is having fatal error when the Prices and Currencies by Country Module is activated.

    Below is the PHP error log

    `[19-Jul-2022 07:54:59 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /var/web/site/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/functions/wcj-functions-price-currency.php:287

    PHP Stacktrace:
    /var/web/site/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/price-by-country/class-wcj-price-by-country-core.php(805): wcj_price_by_country(’39’, Object(WC_Product_Variation), 1)
    /var/web/site/public_html/wp-includes/class-wp-hook.php(307): WCJ_Price_by_Country_Core->change_price(’39’, Object(WC_Product_Variation))
    /var/web/site/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(’39’, Array)
    /var/web/site/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php(797): apply_filters(‘woocommerce_pro…’, ’39’, Object(WC_Product_Variation))
    /var/web/site/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(270): WC_Data->get_prop(‘price’, ‘view’)
    /var/web/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php(572): WC_Product->get_price()
    /var/web/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php(550): WC_Product_Variation->variation_is_visible()
    /var/web/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(131): WC_Product_Variation->is_purchasable()
    /var/web/site/public_html/wp-includes/class-wp-hook.php(307): WC_Cart_Session->get_cart_from_session(”)
    /var/web/site/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    /var/web/site/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    /var/web/site/public_html/wp-settings.php(620): do_action(‘wp_loaded’)
    /var/web/site/public_html/wp-config.php(100): require_once(‘/var/web/site/p…’)
    /var/web/site/public_html/wp-load.php(50): require_once(‘/var/web/site/p…’)
    /var/web/site/public_html/wp-admin/admin-ajax.php(22): require_once(‘/var/web/site/p…’)
    {main} thrown in /var/web/site/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/functions/wcj-functions-price-currency.php on line 287`

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ruen06

    (@ruen06)

    I found the error comes from the Country Groups section. It happens when there is more than one country selected in the group. I am using the latest version of booster plus.

    Plugin Support David G

    (@gravid7)

    Hi @ruen06,

    Thanks for reaching out to us.

    Please provide your module configuration settings screenshot. So, we can check and help you.

    Thread Starter ruen06

    (@ruen06)

    Kindly refer this image https://tinyurl.com/26x865ra

    Plugin Support David G

    (@gravid7)

    Hi @ruen06,

    Thanks for sharing credentials.

    I have checked your settings and found that, you haven’t added ‘Exchange Rates’ for both groups. Please add rates and let us know if the issue is not solved.

    Thread Starter ruen06

    (@ruen06)

    Hi, it works so far. However, we plan to set the price manually. Will this exchange rate affect the amount the customer sees or pays in the gateway?

    Plugin Support David G

    (@gravid7)

    Hi @ruen06,

    I will display to customer in shop page, product details page as checkout time. Let me know if you have any further queries.

    Thread Starter ruen06

    (@ruen06)

    Hi I don’t understand what you are trying to say.

    I am asking about will the Exchange Rates for groups affect the amount the customer sees or pays in the gateway even if the price is set manually per product?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Prices and Currencies by Country Module causing fatal error’ is closed to new replies.