How can SC work together with 'Barcode Scanner', 'Cashier machines'?

How can SC display the PRICE when a price scanner scanned the barcode of a product?
How could the input from price scanner push the dollar value into computer screen?

What i am aware the input to SC only mouse + keyboard.

Kindly advice

A barcode scanner just do a keyboard emulation, followed by Intro or TAB (configurable).

Just give focus the field you want, and once you read, you will see the code on your text field.

If price is on barcode, then you can obtain it, using substr php function in onChange Ajax event for example.


// This code returns first 6 characters from a string
$price = substr({barcode},0 ,6);