I struggle with this too. One silly simple trick that has helped me is to simply leave my wallet at home or in the car. Can't buy stuff without means of paying!
I know this is not always an option and will not work for everyone, but thought I would share incase it can help you.
Please find three Financial programs that can provide guidance on your spending.
https://grokker.com/mind/financial-wellness/program/spending-reset-with-manisha-thakor/5f3194d0ad1ed826eca358f9
https://grokker.com/mind/financial-wellness/program/paycheck-to-paycheck-breaking-the-cycle/61f655fe2962423f6976bc86
https://grokker.com/mind/financial-wellness/program/7-steps-to-financial-wellness/5ac509ddd20eb762e4ef47ac