• Hai there,
    I had faced an issue there in admin new order place, while i was adding a new line item on the admin new order, on the popup box search result shows me trashed products too, On search result Im getting deleted product and click the product the links displays the error
    You can’t edit this item because it is in the Trash. Please restore it and try again.

    Please advice..

    https://wordpress.org/plugins/woocommerce/

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

    (@mikejolley)

    Thats right about not being able to edit trashed products. You can empty trash in the products section.

    Thread Starter dineshkrish

    (@dineshkrish)

    but in search result will not to place the trashed products right?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter dineshkrish

    (@dineshkrish)

    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

    Plugin Contributor Mike Jolley

    (@mikejolley)

    How did you delete the product then? When the parent is deleted, the variations should be too.

    Thread Starter dineshkrish

    (@dineshkrish)

    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,

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    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.

    Thread Starter dineshkrish

    (@dineshkrish)

    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.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    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.

    Thread Starter dineshkrish

    (@dineshkrish)

    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

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    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.

    Thread Starter dineshkrish

    (@dineshkrish)

    it looks not an server problem how can you check it please explain.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    > 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.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘issue on admin new order’ is closed to new replies.