对于黄色“警告”消息(您可能想要用于此目的的消息),请使用
Mage::getSingleton('core/session')->addNotice('Please log in to track your order');
要获得绿色“成功”消息,请使用
Mage::getSingleton('core/session')->addSuccess('Tracking successful');
对于红色“错误”消息,请使用
Mage::getSingleton('core/session')->addError('There was an error tracking your parcel');