Unable to complete Thieves Guild quests/achievement when selling the armor given to you

the-elder-scrolls-v-skyrim

Basically the same question as this:
Where can I get Thieves' Guild armour?

However, I know damn well where I sold my armor – the fence that now wants it! I can't get it back, help!

I've tried:

I get 'Item X Added', yet it doesn't actually show up in my inventory. I'm running:

player.additem 00036584 1

I also found this:
http://www.uesp.net/wiki/Skyrim:Thieves_Guild_(faction)#Fences

Notes:

(IMPORTANT!) When you obtain the Thieves Guild Armor DO NOT SELL IT!
Otherwise Tonilia will not be able to upgrade it.
She will continuely ask to upgrade it and no other dialogue options will be available.
Not only will you lose her as a fence, but you will not receive the Achievement/Trophy (One with the Shadows) of Restoring the Thieves Guild. This is because Tonilia is the last objective.

Anyone know why I can't add this item via console?

Best Answer

Go into console by pressing ~ (the button under ESC on the far left), type:

coc qasmoke

Once in there go to the "All Standard Armour" chest. Find the Armour here eg. Thieve guild armour capacity 20 and loot it. Once looted, type:

coc whiterun

and fast travel to the thieves guild and hand in. Hope this helps.