I have a hook running a print time. The problem I am having is my hook needs to have the transaction saved first before the hook runs and the only time I can see that happening before printing is the before print hook #1. The problem I am having is the hook is supposed to update the transaction just updated and then print and the XML receipt file is supposed to use some of the information just saved. It seems that even though this hook is supposed to be before print time that it is actually formulating the XML file and getting the receipt ready before the hook is ran.
Does anyone know exactly how this hook works (the hook #1) ? The actual process flow like is the XML receipt file actually getting started before the hook runs, even thought the hook is supposed to be before any printing starts? Ideas?
Thanks, Nick