Hi,
In your first message, you talked about onAfterOrderCreate.
That's an event fired by HikaShop, which plugins of the groups "hikashop", "hikashopshipping", "hikashoppayment" or "system" can subscribe to by defining a method for it as explained here:
www.hikashop.com/support/documentation/6...mentation.html#intro
Based on your new screenshot, I now understand that you're actually not using the onAfterOrderCreate event.
Instead, you've created a massaction with a trigger "after an order is created" and you're using the "run PHP code" action in order to try to achieve a similar result as a plugin.
In the PHP code of a "run PHP code" action, you don't have access to any existing variable like $order.
You only have access to tags on the element being processed:
www.hikashop.com/support/documentation/1...action-form.html#php
So, you can't use the code of my previous message "as is". You need to adapt it. For example:
$orderClass = hikashop_get('class.order');
$order = $orderClass->loadFullOrder({order_id}, true, false);
echo $order->customer->user_email; // this is the email stored in HikaShop. This will always be available
echo $order->customer->name; // this is the name of the user stored in the Joomla user account. This won't be available if the order is created as a guest checkout
// supposing the user provided a billing address during the checkout, you'll have the information of the address in $order->billing_address
echo $order->billing_address->address_firstname; // this would provide the first name of the user in the billing address of the order