Ovulating.

Me and my boyfriend have been trying for 2years now. I've almost lost all hope. Drs app coming up but I was wondering if anybody has problems getting pregnant before due to not ovulating and what did the dr recommend?