How to fix this error when I try to recalculate orders cost?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #89323
    Asbjørn Fjendbo
    Participant

    Hi,

    When i try to Recalculate orders cost and profit for all orders it comes up with the following error.
    what could be wrong?

    Fatal error: Uncaught Error: Call to undefined method AutomatticWooCommerceAdminOverridesOrderRefund::get_payment_method() in /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/class-alg-wc-cost-of-goods-core.php:364 Stack trace: #0 /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/pro/class-alg-wc-cost-of-goods-pro.php(115): Alg_WC_Cost_of_Goods_Core->update_order_items_costs(8667, true, false) #1 /var/www/fritrolderi.dk/public_html/wp-includes/class-wp-hook.php(288): Alg_WC_Cost_of_Goods_Pro->recalculate_orders_cost_and_profit(‘tools’) #2 /var/www/fritrolderi.dk/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array) #3 /var/www/fritrolderi.dk/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/settings/class-alg-wc-settings-cost-of-goods.php(108): do_action(‘alg_wc_cog_save…’, ‘to in /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/class-alg-wc-cost-of-goods-core.php on line 364

    #89324
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    Sorry for the late reply.

    From the error message – it looks like this is related to our “Extra Payment Gateway Costs” section (there should be no errors if you disable it). I will be fixing that asap.

    #89325
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    I’ve just sent you our newest development version via email. The issue should be fixed now. Please give it a try. And please let me know if you have any questions.

    #89326
    Tom Anbinder
    Moderator
    Plugin Support

    If anyone else has a similar problem – this is fixed in plugin v1.7.0.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.