YOU SAID:
i went to the store to get food
INTO JAPANESE
私は食べ物を買うために店に行きました
BACK INTO ENGLISH
i went to the store to buy food
INTO JAPANESE
私は店に食べ物を買いに行きました
BACK INTO ENGLISH
I went to the store to buy food
INTO JAPANESE
お店に食材を買いに行きました
BACK INTO ENGLISH
I went to the store to buy ingredients
INTO JAPANESE
お店に材料を買いに行きました
BACK INTO ENGLISH
I went to the store to buy ingredients
You've done this before, haven't you.