I currently had the change to get the product attributes set using the following code:
wp_set_object_terms( 152, Array("Large", "Medium", "Small"), 'pa_size' );
However, as for the CMS backend I know that we have to set in the Attributes section two checkmarks (“Visible on the product page” and “Used for Variations”). How do I use php to check that and also set the quantity for each Variations?
Many thanks in advance!
- The topic ‘How to set product quantity in variables’ is closed to new replies.