• Resolved cherrycoding

    (@cherrycoding)


    Hi,
    I’ve made a custom plugin witch feteched products with certain categories from my shop.
    I noticed that some products are ignored, I don’t know why this happens, even if I remove the category argugment.
    $products = wc_get_products( array( 'status' => 'publish', 'limit' => -1, 'category' => $this->get_option('filter_in_categories') ) );
    This is my code, but problem also exist with this simple call
    $products = wc_get_products( array( 'status' => 'publish', 'limit' => -1, 'category' => 'MyCategorySlug') );
    I loaded the product with wc_get_product and checked the status and category and both are there.
    Does anybody has an idea?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wc_get_products some products are missing’ is closed to new replies.