How to set product quantity in variables
-
Hi,
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!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to set product quantity in variables’ is closed to new replies.