src/Extension/OrderManipulationExtension.php
public function allorders()
    {
        $filters = array(
            'ID' => -1 //ensures no results are returned
        );
        if ($sessids = self::get_session_order_ids()) {
            $filters['ID'] = $sessids;
        }
        if ($member = Security::getCurrentUser()) {
            $filters['MemberID'] = $member->ID;
        }

        return Order::get()->filterAny($filters)
            ->filter('Status:not', Order::config()->hidden_status);
    }
public function allorders()
    {
        $filters = array(
            'ID' => -1 //ensures no results are returned
        );
        if ($sessids = self::get_session_order_ids()) {
            $filters['ID'] = $sessids;
        }
        if ($member = Security::getCurrentUser()) {
            $filters['MemberID'] = $member->ID;
        }

        return Order::get()->filterAny($filters)
            ->filter('Status:not', Order::config()->hidden_status);
    }
Get all orders for current member / session.

@return DataList of Orders