I think 'to' is incoherent in the sentence.
I wonder if you have time to have it fixed.
Could I make the change:
I wonder if you have time and have it fixed.
The sentence is perfectly fine as is.
Your rewrite doesn't make sense.