Thats right about not being able to edit trashed products. You can empty trash in the products section.
but in search result will not to place the trashed products right?
Yes it takes the result from post table but i was search with the woocommerce_json_search_products_and_variations so the parent was not coming but the variation of the product was coming can you get my point Mike?
the product id – 23924 was deleted.
But the Variation of product – 23925,23926,23927 are coming on the search result
How did you delete the product then? When the parent is deleted, the variations should be too.
I deleted my variable product on edit screen by “Move to Trash” link, how ever I deleted the parent then on add item popup search results all the variation of the parent are displaying,
Somehow you ended up with orphaned variations. Did you change the product to simple products before deleting them maybe?
Anyways, here is how you can delete orphaned variations: https://gist.github.com/pmgarman/6135967
I’d recommend making a database backup / doing a test run before running the sql queries on your live site if possible.
No, If I delete a variable product parent only was changed the post status trash and all the others still as publish.
1. If we need to set while trash an product and their sub too,
2. else get product and options when the parent as published status.
if i wrong please advice.
You’ll still need to delete your orphaned variations. Something went wrong when you last deleted the variations. I’m not sure what, but could be another plugin causing a conflict.
Sorry, It occurs my fresh setup to please create an product and make with some options as Veriable Product and then just delete the product.
Now, Go to add order in woocommerce order page and click add item and search with the product name which one was we deleted the options of the product was shown. please confirm me
I just did some testing, and I can’t replicate this on any of my demo sites. There is likely something specific on your sites and/or server causing this issue.
it looks not an server problem how can you check it please explain.
> it looks not an server problem how can you check it please explain.
There isn’t much more I can do to help unfortunately. Unless we can replicate the issue, I can’t look into what is causing it.
If you need to get this resolved, you may need to hire a web developer for help tracking down what is wrong in your set-up.