Well I'm not sure if I got it 100% right but it seems to be working.
I created a new observer class in /includes/classes/observers
PHP Code:
<?php
class popup extends base {
function popup() {
$this->attach($this, array('NOTIFY_HEADER_END_LOGOFF'));
}
function update(&$callingClass, $notifier, $paramsArray) {
$_SESSION['popup'] = 1;
}
}
?>
That part I think I understand. Although I'm unsure what the $callingClass could be used for.
Next I created an autoloader to load my class in /includes/auto_loaders/config.popup.php
PHP Code:
<?php
$autoLoadConfig[10][] = array('autoType'=>'class',
'loadFile'=>'observers/class.popup.php');
$autoLoadConfig[90][] = array('autoType'=>'classInstantiate',
'className'=>'popup',
'objectName'=>'popup');
?>
I guess what throws me here is the 10 and 90. I suppose these tell zen cart when to load the particular code. I suppose the first line loads the class and then the second line runs the popup() code which hooks it into the notifier.
I guess for my purposes this really doesn't matter? That is to say none of my code conflicts with anything else really so when it loads up doesn't matter, just a matter of loading it.