Hello,
After my last message, I started to work on an update of the developer documentation page.
www.hikashop.com/support/documentation/1...ncustompdfserialrule
You will find the function definition with the parameters.
Full examples are not yet available for all the existing triggers but it should help you for the start.
Regarding the second trigger, the idea of the trigger (like the other "additional settings"), is to let the plugin display (echo) its HTML content.
The first parameter gives the needed information regarding the "name" of the input.
To understand how you can integrate, best is to take a look at the view itself (where the trigger is called), directly within the plugin folder.
But for your case, you might not need the second trigger ; just the first one could be suffisent if you want to apply the behavior on every orders depending on the shipping method.
The "$params" variable contains the HikaShop order object (directly provided by HikaShop) ; and you should be able to read the information you need to determine if you want to refuse the inclusion of the serial in the email (using the "$do" variable).
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.