Im trying to show the values in my admin panel to customers.
I run a wordpress website and would like to show these variables on my website, so a customer can view the status of their order. The API connection and all variables are already set up through a plugin. Everything works, but the plugin doesnt have the option to show these values on the website. I also have a code snippet plugin in which I would type the code. I just don’t know how I can give the variables to my website, so that I can use them in a html field for example.
/** Get order status */
public function status($order_id)
{
return json_decode(
$this->connect([
'key' => $this->api_key,
'action' => 'status',
'order' => $order_id
])
);
}
$status = $api->status($order->order); # Return status, charge, remains, start count, currency