• I have noticed that when i am searching a product (name or sku or variation sku), in the results page i also get the drafts products.

    Any way to disable this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    It seems like this might be a bug with WooCommerce, I’m not sure. Basically changing a product status to ‘draft’ does not change the product variation statuses, they stay published.

    I’ve raised a bug report, I’m curious how they will respond, and if this is intended, or indeed an issue: https://github.com/woocommerce/woocommerce/issues/15812

    Based on their response I might have to adjust the plugin code, or they will have to fix that.

    Thread Starter ntoum

    (@ntoum)

    Hi, thanks for your answer. I saw that we had an answer but i am not sure that it actually helps for the solution.

    If you have any ideas to resolve this, let me know.

    Thread Starter ntoum

    (@ntoum)

    Okey, i have something that it may help you.

    I had set to Search in custom post types for products and for variations (because i wanted to have search for variation sku).

    Now i removed it, and works almost fine. It doesn’t show the variables that are draft, but also it doesn’t have as results the variations. Maybe this can be resolved in a future update.

    If i can help you more with this, let me know.

    Plugin Author wpdreams

    (@wpdreams)

    Hi,

    I got a response from the WooCommerce developer team, I will be able to fix this in the upcoming release.

    Thread Starter ntoum

    (@ntoum)

    Great!! Thank you very much for your support!

    Plugin Author wpdreams

    (@wpdreams)

    Hi!

    Just want to let you know, that a new version is out with a possible fix to this problem. Hopefully, if the parent product is set to draft, the variations should not show up either from now on.

    Thread Starter ntoum

    (@ntoum)

    Hi!

    Thank you very much! That was a really fast support! ?? Nice to communicate. I hope to help you in future update or issues. ??

    Plugin Author wpdreams

    (@wpdreams)

    You are welcome, and thank you for your kind words!

    Feel free to rate the plug-in if you like it, it’s greatly appreciated. Let me know if you experience any other issues, will try to fix anything possible.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Draft products are shown in the results’ is closed to new replies.