In order to connect 2 batteries in series, you need to add a charge regulator where the primary is charged. If you want to buy a 24v to 12 v dc-dc inverters, tap off the positive and negative terminals.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.