The former definition is extremely rare for grocery stores. I’ve never seen it, while the latter is ubiquitous. The former is more for restaurants where you buy 10 sandwiches and get the 11th free, or bakeries that do the same thing with loaves of bread.