1
Look up the product by its barcode
Use the GTIN (EAN/UPC) printed on the package. Shorter codes work too; they are zero-padded to 14 digits.A
404 means no shop your channel is approved for sells it: hide the box.2
Sort the offers by price
Offers come in no particular order. Keep the ones in stock and sort by price:
3
Render the links
Render each row with
link as the href. A click goes through your network account, so the
commission is yours.