Implement purchase history and cart getter