attach($this, array('NOTIFY_HEADER_START_ACCOUNT')); $zco_notifier->attach($this, array('NOTIFY_HEADER_START_ACCOUNT_EDIT')); $zco_notifier->attach($this, array('NOTIFY_HEADER_START_ACCOUNT_HISTORY')); $zco_notifier->attach($this, array('NOTIFY_HEADER_START_ACCOUNT_HISTORY_INFO')); $zco_notifier->attach($this, array('NOTIFY_HEADER_START_ACCOUNT_NOTIFICATION')); $zco_notifier->attach($this, array('NOTIFY_HEADER_START_ACCOUNT_PASSWORD')); $zco_notifier->attach($this, array('NOTIFY_HEADER_START_ADDRESS_BOOK')); $zco_notifier->attach($this, array('NOTIFY_HEADER_START_ADDRESS_BOOK_PROCESS')); $zco_notifier->attach($this, array('NOTIFY_HEADER_REGISTERED_USERS_ONLY')); $zco_notifier->attach($this, array('NOTIFY_HEADER_START_GV_SEND')); } function update(&$class, $eventID, $paramsArray) { global $messageStack; if (isset($_SESSION['COWOA']) && $_SESSION['COWOA'] == true) { $messageStack->add_session('header', 'Only registered customers can access account features. You are currently using our guest checkout option. Please logout and sign-in with your registered account to access all account features.', 'caution'); zen_redirect(zen_back_link(true)); } elseif (!isset($_SESSION['customer_id'])) { $_SESSION['redirect_url'] = zen_href_link($_GET['main_page'], zen_get_all_get_params(array('main_page')), 'SSL'); } } } // eof