WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Amras
    Member
    Posted 1 year 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.

    Problem:
    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 ?

    http://wordpress.org/extend/plugins/woocommerce/

  2. dfcowell
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Great :) i will try that

  5. Amras
    Member
    Posted 1 year ago #

    Hi dfcowell

    Thanks it worked :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.