This may be due to several reasons. You have to be student in the immediately preceding year, not 2 or 3 years before. The discount is applied when you checkout.
If you do not use the same email address as last year, you will not get the discount.
You have to be logged in first then go to the shop (if you go to the shop and then login, you won’t see the discount).