Managed to change it radically but missing a few fields I would like to use.
- payment methods. For shipping all is available in the $cart array but for payment methods it is not.
- groups the user is belonging to so it is possible to create a message on the email about that. I understand that is Joomla itself, but is there an easy way to get that in the emails somehow?
I double checked again on the $data->cart for payment info but can just find two entries in there ($data->order_payment_id and $data->order_payment_method) where as the shipping info is far more complete.
I would like to use the payment_name like there is the shipping_name (which is in $data->cart->shipping, but there is no $data->cart->payment).
Is that correct or do I simply overlook something here?
You can get the payment_name information like that:
$paymentClass = hikashop::get('class.payment');
$payment = $paymentClass->get($data->order_payment_id);
is there an overview of the available hikashop::Get classes somewhere? That would save you a couple of emails I guess... would be nice if that was added to the developer page section or so.
The classes are all in the folder administrator/components/com_hikashop/classes
There is no documentation for it. The classes will continue to change while we add more features in HikaShop so you shouldn't rely too much on them. The only things which won't change are the things that we publish in the developer's documentation.