Support » Plugin: WC Custom Thank You » Fatal error: Call to undefined method WC_Order::get_order_key()

  • Hi I am now getting the error:

    Fatal error: Call to undefined method WC_Order::get_order_key() in /plugins/wc-custom-thank-you/woocommerce-custom-thankyou.php on line 162

    I see other people have started having this issue. Was this ever resolved with anyone?

Viewing 1 replies (of 1 total)
  • I know this is old, but I came across it checking for a fix just now – just for anyone else who needs it, I switched out that line to:

    if ( ! $order || $order->get_order_key() != $order_key )

    All better.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Call to undefined method WC_Order::get_order_key()’ is closed to new replies.