Call to a member function update_status() on integer
-
So I have access via curl, with an API that is working normally, in case I want that when it gives me an X status, I can put that status in the order. example:
$order = wc_get_order(); $id = $order->get_id(); switch($Status->status){ case 0: echo $Status->date.': <strong>Arquivo Recebido</strong> </br>'; $id->update_status('refund', 'order_note'); break;}
[14-May-2021 19:36:00 UTC] PHP Fatal error: Uncaught Error: Call to a member function update_status() on integer in /home/animalart.com.br/public/wp-content/themes/flatsome-child/functions.php:277
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Call to a member function update_status() on integer’ is closed to new replies.