WooCommerce - excelling eCommerce
[resolved] Product now showing after adding it programmatically (5 posts)

  1. Amras
    Posted 2 years ago #

    Hi all

    I control a woocommerce 1.6 shop where we have made a upload method, so product owners can upload/create there own products by filling out a form.

    When i create a new product i use wp_update_post() function because i want to control which id it gets.

    After a user has created the new product it's shown under product with all settings on correctly, but it still not shown on frontend, I have to manually press the update before it get's shown. ?

    Does any one know a solution to this ?


  2. dfcowell
    Posted 2 years ago #

    I've hit the same problem myself, I'm trying to find a solution. Let me know if you figure it out!

  3. dfcowell
    Posted 2 years ago #

    I have no idea how to edit on here, but here's the answer. You need to add a post meta with key "_visibility" and value "visible" to each product.

  4. Amras
    Posted 2 years ago #

    Great :) i will try that

  5. Amras
    Posted 2 years ago #

    Hi dfcowell

    Thanks it worked :)

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.