Ok, using your tutorial above I created the 2 files:
/includes/classes/observers/class.append_decals_to_comments.php
<?php
/**
* Observer class for adding decal info to comments
*/
class append_decals_to_comments extends base {
function __construct()
{
global $zco_notifier;
$zco_notifier->attach($this, array('NOTIFY_ORDER_DURING_CREATE_ADDED_ORDER_HEADER'));
}
function update(&$class, $eventID, $paramsArray = array())
{
//$class->info['comments']="test for comments write";
}
}
/includes/auto_loaders/config.append_decals_to_comments.php
<?php
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$autoLoadConfig[190][] = array('autoType'=>'class',
'loadFile'=>'observers/class.append_decals_to_comments.php');
$autoLoadConfig[190][] = array('autoType'=>'classInstantiate',
'className'=>'class.append_decals_to_comments',
'objectName'=>'class.append_decals_to_comments');
however it bombs with a 500 error; i just want to test it working before i get the info for it.
Any suggestions would be appreciated :D
Jeff