Hi,
That solution is for the orders listing, when you click on the "my orders" link of the control panel.
The line
doesn't exist anymore in order / listing.php but you can still add the same code after the line:
foreach($this->rows as &$row) {
and it will work all the same.
Now for the "latest orders" area of the control panel, you need to add the line:
if($order->order_status=='cancelled') continue;
after the code:
foreach($this->cpanel_data->cpanel_orders as $order_id => $order) {
in the file user / cpanel_orders.php and it will work.