"The shop had sold out of shirts" does not itself contain the meaning "I wanted to buy a shirt". In many contexts this might be assumed, but exceptions will exist.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Gene93I was just told that the use of "past perfect" didn't fir the context.That is not correct (unless possibly there is some other important context that you haven't made clear). In itself, the use of the past perfect is fine in that sentence.