You can remember the meaning of 需要 with this easy mnemonic:
You should be shopping for something that is needed or required (需), not something that you want (要).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.