I don't believe it can be bought. As said above, you can mine or just try to find it off a wild Cubone/Marowak. If you wanna make things easier, you can lead with a fainted Pokemon with CompoundEyes as an ability and then have the second Pokemon in your party have the ability Frisk w/ Covet/Thief.