• Resolved etos996

    (@etos996)


    How can we remove products that do not update do re-run :
    “There were 0 errors and 1740 warnings in this import.”

    Import is done not as new products but as existing item.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @etos996

    I’m sorry, but I’m not sure if I understand the question. Are you saying that you want to delete the products that have been removed from your import file? If so, I’m afraid that’s impossible with an “Existing Items” import.

    If I misunderstood, could you please elaborate on what you’re trying to do and include some screenshots of the issue?

    Thread Starter etos996

    (@etos996)

    Please see screenshot.
    https://prnt.sc/ql144z

    “1757 skipped” How we can delete these products?

    • This reply was modified 6 years, 5 months ago by etos996.
    • This reply was modified 6 years, 5 months ago by etos996.
    Plugin Author WP All Import

    (@wpallimport)

    Hi @etos996

    “1757 skipped” How we can delete these products?

    It depends. If they’re skipped because of the ‘wp_all_import_is_post_to_update’ filter, or if they’re skipped because you’ve disabled “Update existing posts”, then you could use the ‘wp_all_import_post_skipped’ hook to delete the posts from the site:

    add_action( 'wp_all_import_post_skipped', 'my_delete_skipped', 10, 3 );
    
    function my_delete_skipped( $post_id, $import_id, $xml_data ) {
    	if ( ! empty( $post_id ) ) {
    		wp_delete_post( $post_id );
    	}
    }

    If they’re skipped for any other reason, you’d have to manually delete them.

    Plugin Author WP All Import

    (@wpallimport)

    @etos996 I’m marking this as resolved since we have not heard back. Let us know if you still have any questions regarding this issue. Anyone else, please start a new thread.

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

The topic ‘Remove warnings’ is closed to new replies.