Ok I am with you so far but each course has its own DetailProductID and should only show the link when a course has been purchased. Each link has its own landing page which are different for each course
Hence I was going for a show if statement as I can then list all courses and ones that are purchased under orderdetails.DetailProductID will show with there own unique link.