How are you passing the prodID? Is it always only passing the prodID for the first order? It is hard to give detailed instructions of everything you need to do, but if you are stuck on one particular thing we can try to help you through it.
In this case you tried to add a link, but it only works for the first item... let's go with that... why does it only show the first item? Maybe we can fix that problem.