WooCommerce - excelling eCommerce
How to set product quantity in variables (2 posts)

  1. timothyky
    Posted 2 years ago #


    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!


  2. timothyky
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.