Limit the time that you spend shopping for groceries or any other item that you need.
Why?
Because the more time you spend in stores, the more likely it is that you will buy something you do not need.