Princess, I was doing this when I had a crappy job I hated - so I was doing it to overcompensate I guess.. And I was thinking, 'Ah, I have this job anyway, and it sucks, at least I can buy something pretty...' (I could spend a lot of money on things like pretty notebooks or little decorative objects or such..)
Then I realized I was not gonna work at this job forever (I didn't want to!!) and I started writing down my money: income and what I spent it on... And I was shocked how much went away on 'little things'...
Also, later on I read/heard how some things I bought were perhaps problematic and could be toxic (like cheap pretty little china from China could have lead in it) and I went for 'zero waste' lifestyle: to be as environmentally friendly as possible and make as little trash as possible... (Some of those notebooks were pretty unrecyclable too!) and sweets have wrappings that are often unrecyclable too, at least where I live... And shoes - yup, they can be problematic to recycle or can't be recycled... So you just end up buying trash and filling the already-full closets... (We have a clutter problem at the house..)
So that pretty much cured me of spending. Except for Amazon/Bookdepository. I still buy books. Trouble is our libraries here don't have the many useful and cool books one finds online...
Can you write down 'trigger situations' - do you buy sweets when you're hungry? Do you go to Starbucks for company or for coffee? (you could make your own and bring your own flask - much more eco and cheaper that way..)
Lollipops are really bad for your teeth anyway... I just don't buy or eat candy... Chocolate is another thing.

Craving for chocolate can mean you lack magnesium, so if that is the case try to put other food with magnesium into your menu. And make sure you are never hungry when going past or into a shop. Having a list of what to buy and only buying what's on that list helped me big time too!