Hello there,

What you want to do then is try to loop through the products like you are now and then compare the argument id with the products id and if a match is found you return it.



...