calculate productID whenever metadata is available