Portable code for buy menu