In the third conditional we use the past perfect in the if-clause and would in the main clause.
Don’t use have in the if-clause.
If I would have known earlier, I wouldn’t have done it.
If I had known earlier, I wouldn’t have done it.She would have bought the coat she wanted if she had have saved more money.
She would have bought the coat she wanted if she had saved more money.