src/Extension/OrderManipulationExtension.php
public function PastOrders($paginated = false)
    {
        $orders = $this->allorders()
            ->filter('Status', Order::config()->placed_status);
        if ($paginated) {
            $orders = PaginatedList::create($orders, $this->owner->getRequest());
        }

        return $orders;
    }
public function PastOrders($paginated = false)
    {
        $orders = $this->allorders()
            ->filter('Status', Order::config()->placed_status);
        if ($paginated) {
            $orders = PaginatedList::create($orders, $this->owner->getRequest());
        }

        return $orders;
    }
Return all past orders for current member / session.