Forum Replies Created

Viewing 1 replies (of 1 total)
  • abakaka

    (@abakaka)

    I read all the topics on this topic:
    woocommerce / woocommerce: Issue # 15455
    woocommerce / woocommerce: Issue # 15114
    woocommerce / woocommerce: Issue # 17365

    and I understood, because of what the problem arises in me.
    Indeed, if you re-save the products manually, everything works correctly.
    The matter is that I add the products program.
    Through:
    $ post = array (
    ‘post_author’ => 1,
    ‘post_content’ => $ OpisProd,
    ‘post_excerpt’ => $ KratOpisProd,
    ‘post_status’ => ‘publish’,
    ‘post_title’ => $ NameProd,
    ‘post_type’ => “product”,
    );

    and then update the presence as follows:
    update_post_meta ($ post_id, ‘_stock_status’, $ Stock);

    Woocommerce adds the product and records the availability, but the availability does not work correctly.
    Tell me, is it possible to solve this problem when program adding a product? How to add the products correctly?

    • This reply was modified 7 years ago by abakaka.
Viewing 1 replies (of 1 total)