For me, the standard form is "two pair s of shoes". "two pair of shoes" to me feels like an old-fashioned or dialect form of wording. By the way, the word is spelled gramm a r.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.