Support » Plugin: WooCommerce Easy Duplicate Product » Bulk edit products always run on any bulk action

  • Resolved jofrysutanto

    (@jofrysutanto)


    After some testing and looking at the source code, it looks like the plugin does not check if the bulk action selected by user is the duplicate action. Hence it always run the duplicate function if any bulk action is performed.

    In the index.php file:

    
    function wedb_handle_duplicate_product_bulk_action($redirect_to, $doaction, $post_ids)
    {	
        // If action is requested is not duplicate product, bail early.
        if ($doaction !== 'wedp_duplicate_product') {
            return $redirect_to;
        }
        $duplicated = [];
        // ...
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ActionPHP

    (@actionphp)

    Thank you, the update is coming soon – by end of next week.

    Plugin Author ActionPHP

    (@actionphp)

    I am not able to replicate the issue you’re having. Please give an example of a bulk action that caused the products to duplicate.

    Plugin Author ActionPHP

    (@actionphp)

    In any case, I’ve added a condition to check for the right bulk action. Thanks!

    Thread Starter jofrysutanto

    (@jofrysutanto)

    Awesome.

    To replicate the issue, you would need to have other ‘custom’ bulk edit action through the hook.

    Since there was no check if the right action is called, it would have always called the duplicate bulk action, and the customer bulk action.

    But glad you have it patched, thanks so much.

    Plugin Author ActionPHP

    (@actionphp)

    But glad you have it patched, thanks so much.

    You’re welcome. Get in touch any time you need help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Bulk edit products always run on any bulk action’ is closed to new replies.