The fact that you are aware of what you are doing is a good starting point. Most people mindlessly continue on that route but you have obviously taken some time to think about why you are doing this.
You diet is an important factor in helping you combat cravings and impulsive like this, but you also need to make sure that you are doing your best in other areas too.
For diet I would eat as much fruit as you desire before meals, and either have a large green smoothie daily or a large green salad daily. Fruits and greens contain all the nutrients your body needs and will help tame cravings.
Now as for the impulsiveness. If you want to combat it try avoiding the place - can you go about your day to day without walking past it or coming into contact with it at all?
You should also try to take some time to write down other triggers - like maybe stress, smell of food etc...and try to come up with resolutions for them.
If you have a plan, you are more likely to combat this issue (along with eating nutritious wholesome foods like fruits and vegs).
Also another thing to be aware of is how you feel before, during and after eating this food - especially note the after. Becoming aware of these feelings (like the greasy feeling after a binge) will help put you off in the future. It did me!
Hope this helps a little