It actually doesn't matter. The cashier will put the tip into his/her box anyways. I usualy ask the cashier too, but my hair stylist is always there when I say "add x% to him please".
But in your case... just to give him a "friendly" reminder that you are a valuable customer, give him in person next time, make sure he/she knows!