• 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!

    https://www.ads-software.com/extend/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Thread Starter timothyky

    (@timothyky)

    Is it actually possible to set the stock variable for the attributes from the front end cms using php?

Viewing 1 replies (of 1 total)
  • The topic ‘How to set product quantity in variables’ is closed to new replies.