I would like to update the product display nodes with taxonomy terms based on the SKU of the referenced product of each node. Is that possible, programmatically?
- I know the SKU.
- I need to find the product by the SKU of a product display. 1.I update the taxonomy term of the product display accordingly.
I tried to use EntityFieldQuery
without success.
If someone could possibly give me an idea on the best approach to do this in DrupalCommerce, or provide a link to the documentation I have missed, it is greatly appreciated. I have lost a day or two googling the wrong questions, apparently.