Thanks for the quick reply, but I'am new to ZenCart development and don't know where to put that code.
I tried to implement your suggestion as follow.
But when I change the status of an order within the admin nothing happens.
./includes/auto_loaders/config.custom_process_status.php
PHP Code:
<?php
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
$autoLoadConfig[190][] = array('autoType'=>'class',
'loadFile'=>'observers/class.custom_process_status.php');
$autoLoadConfig[190][] = array('autoType'=>'classInstantiate',
'className'=>'custom_process_status',
'objectName'=>'custom_process_status');
./includes/classes/obervers/custom_process_status.php
PHP Code:
<?php
class custom_process_status extends base {
function __construct() {
$this->attach($this, array(''ZEN_UPDATE_ORDERS_HISTORY_STATUS_VALUES' ));
}
function update($orderid, $new, $old)
{
// Do the magic.....
echo ' It works';
die();
}
}
Bookmarks