Hello softwarehtec,
That's great, thanks !
I checked a bit your code and I saw that you do not perform a loop on the "$packages" from the "getOrderPackages" function.
If the variant is just one package, you see the variable $packages but if you do not find it, it means that you have several packages and you'll need to perform a loop on it.
Thanks to that, you will support the cases when the customer have a lot of products and his order must send over several boxes.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.