There is no data, except for the barcode number itself, embedded in a UPC or EAN barcode. When the scanner at the checkstand scans the product and reads the barcode, the electronic cash register sends the number to the stores central database where the number is looked up. The central database sends the information back to the cash register where the customer is charged.
If there was pricing embedded in a barcode, nothing would ever be able to go on sale without replacing all of the barcodes. This allows the store to change the pricing as needed and gives complete flexibility to the store to put things on sale.