If the battery connector is all you have to replace you would be lucky. If the mac turns on only sometimes you probably have more internal damage. Where exactly did the liquid spill?
open