-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.2.2
-- Browser(s) name and version -- : 64.0.3282.167
Hi,
I'm trying to develop an Hikashop plugin that sends the product ids and the serials attached to an external webservice whenever an order is confirmed (i'm using the onAfterOrderUpdate trigger because the onAfterConfirmOrder trigger is not called if a coupon is used to have a free product).
The issue is that in the $order object passed in the trigger, the serial data is still completely empty. It seems that the assignSerial method used by Hikaserial is called after the Hikashop plugins are called.
How can i properly retrieve the serials in an order in a Hikashop plugin (not hikaserial) with the trigger onAfterOrderUpdate ?
Thank you in advance for your response.