You haven't given examples of hats or specified the era, but assuming it's approximately the Napoleonic Wars, you may be interested in a few earlier posts
if you have follow-up questions on any of these, ask them here & page the relevant user by including their username