When I had cravings I just had to force myself to remember how horrible I'd feel the next day and how much I'd hate myself for giving in. After a while of being sober the cravings pretty much went away, at least they don't happen very much and when they do they're easy to overcome.