Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • HI, I was using a very basic plugin in php to update my products stock qty from an external XML feed and used

    $woocmmerce_instance = wc_get_product( $prodID );
    $new_quantity=wc_update_product_stock( $woocmmerce_instance, $quantity);

    So now I wanted to use your Get and Update api methods but I’m not familiar on how to do it. Is there any example or any documentation on how I can replace the above mentioned method and use yours to update the stock @ locations?

    Also is there a way to programatically assign to my existing products the stock locations?

    Thanks in advance!

    Thread Starter jboyoli

    (@jboyoli)

    Thanks for the fast reply.
    I’ve added the suggested code to the additional CSS and published, but seems to make no difference on any of the pages even if I change it to 500px not sure if my site is not taking any additional CSS or if this particular code is not working.

    any other suggestion?

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)