When I copy a product the term_relationships link for expiry dates is not copied. Expiry rule dropdown has “None” selected. When I manually select correct expiry rule via dropdown the data is shown. By looking in database I see meta data is copied but the link in “term_relationships” is not created. How to fix this? Is there a missing hook or something similar?
Our real issue is that we are copying products via API so we can not handle this manually. But for reference we where able to recreate issue via admin as mentioned above.