Create a budget at the start of every month, and stick your spending strictly to it.
Once you feel like buying something, control this urge for 24 hours. It will give you time to reflect on the purchase.
Stop notifications from the shopping app and accounts that fuel your temptation.
Take out cash from your account as per the budget, and spend accordingly.