mc12345678:
Could take from both or a combination. The "earlier" one to gather the session data that is then deleted later (and not otherwise retrievable),
Not really possible. Anything of use saved in the session data will always be available by other means at another time via other methods (generally a DB query).
mc12345678:
the later one to use the previous session data if it is not already captured/transferred to something else useful. This way the information is gathered as necessary/when available and used when desired...
I think you are way over complicating things with this approach.
mc12345678:
In a way, the worst thing that happens regarding the retriggering action is that the data is set again to what it already was... Meanwhile the "action" waits to observe the call to the notifier that is not "easy" to refresh...
The earlier notifier has all the session data needed for most purposes. What it doesn't have would need to be obtained via other means anyway.
The later notifier will require a DB lookup for any data needed for the additional code (assuming all the sessions have been nullified).
The 1st notifier does run the risk of multiple triggering if/when the page is reloaded, but this will be a trivial task to mitigate (see the ec_commerce module).
Rather than trying to 'take from both' I reckon it would be better to ask the question "Is everything I need available from the session data, or do I need to perform a DB lookup.
If the former, then the 1st notifier and a test to page refreshes would (IMO) be the easiest to use, and the most efficient code wise.
If the latter, then since a DB query is going to be needed anyway, then use the last notifier and not have to worry about the page being refreshed.
I really don't see the point of 'taking from both'.
Perhaps I'm missing some important point you are trying to make here? (No offence, but even after all this time I still have a hard time trying to 'decode' many things that you write) <g> Seriously, more often than not, you're right on the money - it is just sometimes hard to see. I think this may be one of those times.
Cheers
RodG
NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.