• Hi

    After updating woocommerce i am getting this error in my error log.

    The WC_Order::get_order_currency function is deprecated since version 3.0. Replace with WC_Order::get_currency.

    Can you please help me sort this out.

    Woocommerce Version : Version 3.0.8

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi

    This is linked to a plugin or the theme, that use a deprecated function of woocommerce 3.0.8 .

    You might update the theme and the plugins. Or correct them, by looking after get_order_currency and replace it with get_currency. Only those who are called by WC_Order Instance.

    regards

    Thread Starter simer123

    (@simer123)

    Hi

    Thanks for your reply.

    Theme and plugins are up to date. I will look manually for get_order_currency() in plugins. Hopefully that will fix the issue.

    thanks

    Thread Starter simer123

    (@simer123)

    Hi

    I am having more errors related to get_id() function. I have some custom code in my functions file and after woocommere update , i replaced $product->ID with get_id() function and now i am getting

    PHP Fatal error: Call to a member function get_id() on string in /var/sites/f/fineshootingaccessories.com/public_html/wp-content/themes/fineshooting/functions.php on line 283

    People facing problems in placing orders.

    Can you please help, its urgent.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The WC_Order::get_order_currency function is deprecated since version 3.0. Repla’ is closed to new replies.