/** * Send a custom e-mail to the user * @developer Brandon Hansen * @date Oct 23, 2010 */ public function send_custom(Order_Model $order) { orders::history_entry($order, 'Sent Email to Customer'); }
/** * Mark the order as completed * @developer Brandon Hansen * @date Oct 23, 2010 */ public function mark_as_completed() { $this->status = 'complete'; $this->save(); orders::history_entry($this, 'Order Complete'); ORM::factory('order_email')->send_order_completed($this); }