I have an idea... (tip the grocery store people)

I had tried this and was told "we're not allowed to accept tips". I got around it by saying "let me buy you lunch".
This is what I was wondering - I would run it by the manager first
Don’t put the cashier into the position of having to explain corporate policy