How do I update commerce product display nodes based on SKU (of the referenced product)?
Although an old thread, for the benefit of others looking, this could be done easily using views_bulk_operations (VBO). No coding required.


Install VBO.
Create a View of product display nodes.
Add a relationship to commerce product.
Add a batch update operations field to the View.
Enable the "Modify entity fields" option in the VBO field settings.
Add an exposed filter for the product SKU
Save
Use the batch update operation to check and set the relevant taxonomy term reference field.