I'm working on a plugin for HikaShop but my problem is that I can't read attributes from $order like the address. Following code is within the 'onAfterOrderCreate(&$order,&$send_email)' function
$hikaFirstname = $order->billing_address->address_firstname;
$hikaLastname = $order->billing_address->address_lastname;
$hikaCompany = $order->billing_address->address_company;
$hikaFoo = $order->order_user_id;
echo "<br />".$hikaFoo;
echo "<br />".$hikaFirstname."<br />";
echo "Lastname: ".$hikaLastname."<br />";
echo "Company".$hikaCompany."<br />";
Why is there only a value in $hikaFoo? The other variables are apparently empty. This is probably a PHP syntax error but I've never worked with such heavy arrays and so I apparently don't know how to adress a specific value.
Is there a more comprehensive developer documentation than this one page?
Best regards!