These are all voluntary. Merchants give discounts to veterans, active military, seniors, teachers, etc. That's their choice.
I'm referring to a law that mandates special treatment.
And that would be what laws? I personally don't know of any except some benefits for families of LEOS killed in the line of duty.