• Hello,

    When I duplicate a product to create a new one and after I save the new, I see in the admin product list a number in the wishlist column. The new product takes the wishlist from the original.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Janilyn Tran

    (@janilyn409)

    Hi @restodo ,

    Could you kindly make a screen recording video so that we can reproduce this on our test site? It is best if we can get as many details as possible in order to confirm if this is an issue within or outside our plugin.

    Best regards.

    Thread Starter deffo

    (@restodo)

    In this link you can see a short video showing the problem in my stage site. I have a product called TEST where you can see was added to some wishlist showing 1 in that column and after I duplicate to create TEST New, you can see this new product was created showing 1 in the column of wishlist.

    https://share.zight.com/eDuOmzO9

    I am running WordPress 6.9.4 and WooCommerce 10.7.0

    • This reply was modified 5 months ago by deffo.
    Janilyn Tran

    (@janilyn409)

    Hi @restodo ,

    Thanks for the information.
    Our system is encountering some maintenance changes, thus we might not be able to test this for a while. I will send your details to our developers and have them check as soon as our system is ready. It might take pretty much time for them to test it out, please be patient meanwhile.

    Just in case I couldn’t reach back to you before the next plugin update is rolled out, kindly update and clear the caches before checking and tag me in so that I can check back asap.

    Best regards.

    Thread Starter deffo

    (@restodo)

    Hi @janilyn409 ,

    I’ve updated to the latest version and the problem stills.

    After checking your code the problem is in this function because you are checking if the product has woosw_count but you are not checking if a user added it.

    function posts_custom_column( $column, $postid ) {
    if ( $column == ‘woosw’ ) {
    if ( ( $count = (int) get_post_meta( $postid, ‘woosw_count’, true ) ) > 0 ) {
    echo ‘‘ . esc_html( $count ) . ‘‘;
    }
    }
    }

    So for the moment I commented this to avoid seeing the Wishlist column in the products admin list.

    add_filter( ‘manage_edit-product_columns’, [ $this, ‘product_columns’ ], 10 );

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

You must be logged in to reply to this topic.