• Hello,
    I do not understand why every time I create a new product it is published by default as “hidden”.

    Only by changing it in “quick edit mode” on admin product list page it takes my modifyes “published in catalog and research ” – but if I try to change it from product page edit as soon as I upgrade it returns to “hidden”.

    May I have inadvertently touched something in the configuration that I put products in a “hidden mode” by default ?

    I hope someone can give me information about it because having to enter hundreds of products would be really a break editing them manually in “quick edit ” to make them visible (because every time I make any other changes eg . Price, attribute, description and upgrade , I put him back “hidden ” ) .

    Thank you for your time.

    https://www.ads-software.com/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    The default is visible, but there is a woocommerce_product_visibility_default filter to change the default which it sounds like you’re using.

    Thread Starter bormiositi

    (@bormiositi)

    Hi Mike, thank you for reply.
    Where can I modify woocommerce_product_visibility_default filter?
    Thank you,
    Chris

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    See if its inside your theme or any plugins already.

    Thread Starter bormiositi

    (@bormiositi)

    I found this code line on class-wc-admin-post-types in /wp-content/plugins/woocommerce/includes/admin:

    $current_visibility = ( $current_visibility = get_post_meta( $post->ID, ‘_visibility’, true ) ) ? $current_visibility : apply_filters( ‘woocommerce_product_visibility_default’ , ‘visible’ );

    as you can see woocommerce_product_visibility_default is “visible” by default and so I really don’t know why when saving product page it automatically set it to hidden

    what can I do?

    thank you

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    I know its in WooCommerce core ?? But I think its going to be set in a plugin too (using something other than visible).

    Thats my only assumption. You can turn off all other plugins and switch themes to test properly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘hidden products by default’ is closed to new replies.