The first code that you'll need to enable so that you can get Infinite Rare Candies is this Gameshark code for Infinite Items: D261DC6D 197B4DC2.