You cannot enter Blackthorn City by buying a Rage Candy Bar in HeartGold/SoulSilver—because the Rage Candy Bar is not a real, obtainable item in normal gameplay. It exists only as a joke/cheat item with zero function.
Blackthorn City unlocks through standard story progression:
Ignore the Rage Candy Bar myth—just follow the main quest.