How Does a Barcode Know the Price?

From Explain One Thing · 8:24

Show by The Podcaster's Warehouse

A supermarket barcode usually identifies the product, not its price. Explore how checkout databases, sale rules, and specialized labels turn a scan into a total.Sources:https://support.gs1.org/support/solutions/articles/43000734158-are-the-description-and-price-of-the-item-included-in-the-barcode-https://resources.gs1ie.org/helpdesk/why-isnt-my-barcode-scanninghttps://www.help.gs1us.org/check-digit-calculatorhttps://www.gs1us.org/faqs/gs1-company-prefix-barcodes-and-indentificationhttps://ref.gs1.org/standards/genspecs/Transcript:The cereal box has been sitting on the shelf for weeks. Its barcode hasn't changed. Yesterday it cost one amount. Today it's on sale. The cashier scans the same little stripes and the register somehow produces a different price.Where did the new number come from? Did someone secretly update the ink?This is Explain One Thing. Our question: how does a barcode know the price?For an ordinary packaged item scanned at a supermarket, it usually doesn't. The barcode supplies a product identifier. The checkout system uses that identifier to look up information, including the price, in its records. The printed code is more like a name tag than a complete instruction manual.Let's visit an imaginary shop. We'll call it the Corner Store, and we'll use made-up products and prices throughout this example. On a shelf sits a box of breakfast flakes with a particular product number. The register's records connect that number to the right product description and a price of four dollars.The scanner reads the code. The system recognizes the number, finds the matching record, and uses the information associated with it. Tomorrow the shop changes its price record to three dollars. The box can stay exactly as it was. The answer in the lookup has changed.Think of a contact in your phone. The person's name can stay the same while you update their phone number. If the name is the way you find the record, you don't have to rename the person whenever one piece of information changes.That analogy has limits. A real product identifier follows a formal system, and a shop's checkout is more involved than a contact list. But separating the key from the information it retrieves is the central idea.The stripes and spaces give a machine a way to read the identifier. The familiar numbers printed alongside many retail barcodes let a person work with the number too. The picture and the number aren't two unrelated product secrets. They are different ways of representing identifying information.One widely used identifier is the Global Trade Item Number, often shortened to G T I N. A common U P C barcode carries a twelve-digit version. Those letters are useful labels, but you don't need to memorize them to understand the transaction. The important role is identifying which trade item the system is handling.Notice that we said which product, not necessarily which individual box. Two boxes of the same cereal in the same size can share the same ordinary retail product identifier. A different size or product variation may need a different one.Picture a library. A catalog entry can identify a particular edition of a book, while the library may use another label to distinguish its individual copies. Similarly, identifying a product type and identifying one unique physical object are different tasks. Not every code you see is designed to do both.Back at our imaginary shop, let's change the scene. A customer takes the same cereal to a second store across town. That store has its own pricing records. The same product identifier might lead to a price of four dollars and fifty cents there.Nothing about the printed stripes requires both shops to charge the same amount. The code helps them identify the product. It doesn't dictate one universal retail price.This also explains why scanning a product with a phone app can produce a different kind of answer. The app has to decide which information source to consult. If that source recognizes the identifier, it may display a description or other product details. If it doesn't, a successful reading of the number may still lead to no useful result.Reading the key and possessing the matching record are separate achievements.Imagine finding a house key in an envelope. You can inspect its shape perfectly and still not know which door it opens. Our barcode isn't a security key, but the analogy captures the missing connection. The information in front of you becomes useful only within a system that knows what to do with it.That's why a barcode can scan correctly while a checkout reports an unknown item. The stripes may be readable, yet the store may not have the necessary product record connected to that number.There's a further distinction between a code being readable and being correct. Many product identifiers include a check digit, calculated from the other digits. A scanner or software can use that relationship as a basic test of the number.Think of a short arithmetic agreement written into…

More episodes of Explain One Thing

More episodes

PodSearch is a free, independent podcast search engine. Read about PodSearch, the privacy policy or contact us.