For anyone else wishing to do this   Change $this->_order_id = date('ymd-His-').rand(1000, 9999);  to $this->_order_id = "your prefix". date('ymd-His-').rand(1000, 9999);   You will need to increase the char length in the database though, as it's currently limed to 18.