I am trying to add an attribute to some products in Woocommerce. I am able to do so, using the following :
wp_set_object_terms( $product_id, 'Test Model #', 'pa_model' , false);
Cool. The data stores into the product. Now when I view the product on the front end, nothing appears in the additional data tab. The tab is there but no data exists inside the tab.
If I edit the post, the product attributes exist on the product, but are not displaying on the front end.
If I hit Update Post, the data then appears on the front end. But does not until I hit update, which isn't ideal in situations where I need to update hundreds of products at a time.
Is there something I'm missing after wp_set_object_terms to store the data properly?
Screenshots to help illustrate what I'm referring too :
Backend Product Attributes Immediatly following an Import: https://i.cloudup.com/KQA2L1rPCI.png
This is the front end display : https://cloudup.com/iiyxQqKx8G8
And the front end display AFTER i re-save the imported product : https://cloudup.com/c9UGI-z43UP