I need custom function to update the product name for multiple tickets at the same time

I need custom function to update the product name for multiple tickets at the same time

I need custom function to update the product name for multiple tickets at the same time