It all depends. My daughter is 6 so it's mostly fun now. She goes with me for food shopping almost always, we talk, she helps me find items from our list and we try to get something new to try every time like healthy fruits and veggies...
She has always behaved in the store unless she is tired or hungry. So I pretty much always make sure she is well rested and she had a good lunch or snack before we enter the store ;) Otherwise she will be all over the place.