• Resolved Jed

    (@jerrald)


    Good day. How to fix this “The WC_Order::reduce_order_stock function is deprecated since version 3.0. Replace with wc_reduce_stock_levels”. TIA

Viewing 1 replies (of 1 total)
  • Plugin Contributor Gerhard Potgieter

    (@kloon)

    Hi, since WooCommerce 3.0 we have deprecated the reduce_order_stock function in the Order class and replaced it with a global function called wc_reduce_stock_levels.

    All that message means is you still have a theme or plugin that is utilising the old function that will need to be updated to use the new function. I can unfortunately not tell you which plugin it might be so you will have to troubleshoot on your own. I would start by checking if there are updates available for any plugins you have installed and then update, and also check your theme for updates and update that.

    Remember that you need to make sufficient backups for updating your theme or plugin in case something goes wrong you have a way to roll back the changes.

Viewing 1 replies (of 1 total)
  • The topic ‘How to fix WC Order Error’ is closed to new replies.