UO.GetShop
From OpenEUO
local bRes,nPos,nCnt,nID,nType,nMax,nPrice,sName = UO.GetShop()
This command retrieves information about the currently shown top entry on an open shopping gump.
Note: Every time you scroll to a new entry, you have to call UO.GetShop.