What do you think? Why would a "that" spontaneously become a "which"?
By the way, I wouldn't have back shifted "bought."
Also, we usually use the plural for a "pair of shoes." It's not "a pair" that is the subject, but "two shoes." Of course, that's not universally the case.