For Kroger, I filled out an application and everytime I shop and according to the amount I spend it all adds up. Getting gas at their gas station all I do is put in my phone number.
My sister buys a lot of groceries their and sometimes get 40 cents off. You then decide whether you want to spend the entire amount or how much.
Don't know about Walmart.