• Resolved nafii

    (@nafii)


    The plugin “WP-Optimize Premium – Clean, Compress, Cache” is preventing invoice plugin’s flow. The above-mentioned plugin has an event listener attached to the bulk action button that prevents other actions attached to the button using the function stopImmediatePropagation(). When I removed this click event, the bulk action worked fine.
    [print-invoices-packing-slip-labels-for-woocommerce]

    • This topic was modified 3 months, 4 weeks ago by nafii.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wpmansour

    (@wpmansour)

    Hi @nafii ,

    Thank you for bringing this issue to our attention.

    I understand that you’re experiencing problems with the bulk actions of your invoice plugin due to a conflict with the WP-Optimize Premium plugin. Specifically, the event listener on the bulk action button using stopImmediatePropagation() is preventing other actions from executing.

    Our development team is aware of this and is working on a fix as a high priority. A fix will be released today!

    In the meantime:

    • Please continue using version 3.3.2 of WP-Optimize, as you mentioned that it works without issues.
    • Monitor our updates and release notes for a fix to this conflict. We will resolve this issue as quickly as possible.

    We apologize for the inconvenience caused and appreciate your patience as we work to resolve this.

    Thread Starter nafii

    (@nafii)

    We are still waiting for the release of the fixed version. Please do it at the earliest and let me know.

    The problem is in js/wposmush.js line 50:

    	$('#doaction, #doaction2').on('click', function(e) {
    e.stopImmediatePropagation();
    var action = $(this).prev('select').val();
    if ('wp_optimize_bulk_compression' !== action && 'wp_optimize_bulk_restore' !== action ) return;

    var $selected_images = get_media_library_selected_images();
    if (0 === $selected_images.length) return;
    e.preventDefault();
    if ('wp_optimize_bulk_compression' === action) bulk_compression($selected_images);
    if ('wp_optimize_bulk_restore' === action) bulk_restore($selected_images);
    });

    Changing it to this solves the issue:

    	$('#doaction, #doaction2').on('click', function(e) {
    var action = $(this).prev('select').val();
    if('wp_optimize_bulk_compression' === action || 'wp_optimize_bulk_restore' === action) {
    var $selected_images = get_media_library_selected_images();
    if (0 === $selected_images.length) return;
    e.preventDefault();
    if ('wp_optimize_bulk_compression' === action) bulk_compression($selected_images);
    if ('wp_optimize_bulk_restore' === action) bulk_restore($selected_images);
    return false;
    }
    });
    Plugin Support wpmansour

    (@wpmansour)

    Hi @nafii & @passatgt ,

    Thank you for your patience. We have good news!

    The issue with WP-Optimize Premium preventing the bulk actions of your invoice plugin has been addressed in the latest version of WP-Optimize (3.4.1). Please update to the latest version to resolve this problem.

    To update:

    1. Go to your WordPress admin dashboard.
    2. Navigate to Plugins > Installed Plugins.
    3. Find WP-Optimize in the list and click on “Update Now.”

    After updating, please check if the bulk action works correctly. If you encounter any further issues, feel free to let us know.

    Thank you for bringing this to our attention and for your understanding.

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.