How can I get a referral code if I have already contributed?

You will have to contribute another small amount (Min. amount = 0.1 KSM) to the crowdloan to receive a referral code.