Hello,
Hard to answer you because we don't have lots of information, and especially about context.
Tell us which kind of products you have in mind, does product have something that can allow to identified them ? Does this solution must works for few products or a lot ?...
Awaiting details from you to better answer you.
Regards