• Resolved samuelng527

    (@samuelng527)


    Hi,

    After I have update Woocommerce plugin to 6.6.1, i have received the below error message on my wordpress admin.

    Deprecated: woocommerce_order_amount_total is deprecated since version 3.0.0! Use woocommerce_order_get_total instead. in /home/healthstore/public_html/wp-includes/functions.php on line 5698

    Deprecated: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /home/healthstore/public_html/wp-includes/functions.php on line 5323

    Please advise, many thanks.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @samuelng527

    As per the error, it looks like you may have some code added to your themes’ functions.php file that contains the deprecated code. You’ll need to find the function that has woocommerce_order_amount_total and replace that with woocommerce_order_get_total

    Cheers!

    Thread Starter samuelng527

    (@samuelng527)

    Hi @rynald0s,

    Thank you for your advice.

    I have tried to find woocommerce_order_amount_total on my theme’s functions.php and as well as /home/healthstore/public_html/wp-includes/functions.php on line 5698 but i can’t find any deprecated code.

    Please help. Thank you once again.

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @samuelng527

    If that code is not present in your themes’ functions.php file, then it’s likely another plugin adding still using the old code.

    As a first step, please update all outdated plugins, to see if that helps. If you have done that with no success, then please follow up with a full conflict test where you will need to temporarily switch to another default WordPress theme like Storefront, and disable all your plugins except for WooCommerce core, to see if that makes a difference. If the issue goes away, it was indeed a conflict and you will need to re-enable your plugins until it breaks again, then contact the author of the conflicting plugin.

    We have documentation on how to perform the conflict test here:

    https://woocommerce.com/document/how-to-test-for-conflicts/

    Cheers!

    Thread Starter samuelng527

    (@samuelng527)

    Hi @rynald0s,

    Noted, thank you very much!

    Plugin Support con

    (@conschneider)

    Engineer

    Hi Samuel,

    > Noted, thank you very much!

    ??. Happy troubleshooting. We will stand by for now.

    Kind regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deprecated error Message’ is closed to new replies.