Add buy gadget functionality.