Like, prices are displayed on the shelf for everyone to see. And they have to match what you pay at checkout.
So how the heck would a grocery store even do this? And this law is specifically around grocery stores.
Like, there was a big kerfuffle a while ago about how Wendy's was going to engage in dynamic pricing so that a burger would be cheaper during the slow period at e.g. 3-4 pm, compared to the lunch rush. But that wasn't personalized. And the outcry was so strong they never did it, no law needed.
Also, this law excludes loyalty programs and promotional offers, which seems to be the main way that groceries have engaged in dynamic pricing in reality -- the advertised price doesn't change, but they give certain people certain coupons. And of course, my parents were clipping coupons from newspapers decades ago, as richer people couldn't be bothered, whereas people trying to make ends meet was clip and save religiously.