No action nor the right of action to recover any such secondhand or used motor vehicle, nor any part of the selling price thereof, shall be maintained in the courts of this state by any such dealer or vendor, his successors or assigns, when such vendor or dealer shall have failed to comply with the terms and provisions of this chapter.
Ala. Code § 32-16-3 (1975)