What does the saying 'putting the cart before the horse' mean?

It means that you do something in the wrong order. For example, it is custom to ask a woman's father for her hand in marriage. So if you marry a woman, then ask her father for permission, that would be considered putting the cart before the horse.