For stuff like groceries I don’t even check the price at all.
For staples that are shelf stable and easy to store (shampoo/conditioner and laundry detergent are examples that come to mind) I will usually buy two if i happen to be buying when its their turn for the rotating discounts. I figure I’m going to be buying them anyway so I might as well bring down the average price.