grabbing product id from array just created for document generation