src/Extension/MemberExtension.php
public function getPastOrders()
    {
        return Order::get()
            ->filter('MemberID', $this->owner->ID)
            ->filter('Status:not', Order::config()->hidden_status);
    }
public function getPastOrders()
    {
        return Order::get()
            ->filter('MemberID', $this->owner->ID)
            ->filter('Status:not', Order::config()->hidden_status);
    }
Get the past orders for this member

@return DataList list of orders