Support » Plugin: One Stop Shop for WooCommerce » “Delivery threshold reached” message keeps popping up

  • Resolved christofv

    (@christofv)


    Hi,

    the message about the “Delivery threshold reached (OSS)” in the backend keeps popping up. I clicked “dismiss” to no avail.

    Then I deactivated the plugin, message stays there.
    Then I runned the Garbage collector in the database, no tables found.
    Even when deleting the plugin altogether, the message keeps showing…

    How can I disable that message please?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi there,

    the message is being added as a Woo admin note (WooCommerce Admin package). Normally when clicking the dismiss button (+ having manage_woocommerce permissions) will work just fine.

    Seems like a weird bug in combination used with the custom status. Please manually delete the note from the wc_admin_notes Woo table. Will fix this issue within the next update. Sorry for the inconvenience.

    Cheers

    Thread Starter christofv

    (@christofv)

    Clicking “dismiss” doesn’t do anything.
    I don’t know how to manually delete a note in a database table.

    Plugin Author vendidero

    (@vendidero)

    Hi there,

    the dismiss button only works in case the plugin is activated (the OSS plugin). Furthermore you’ll need manage_woocommerce permissions to use the link. You might add this little snippet to your theme’s functions.php to force deleting the note within the DB (use with caution: You should create a backup of your db beforehand).

    
    <?php
    
    add_action( 'admin_init', 'my_child_force_delete_note', 10 );
    
    function my_child_force_delete_note() {
      global $wpdb;
      
      $wpdb->delete( $wpdb->prefix . 'wc_admin_notes', array( 'name' => 'oss_delivery-threshold-warning-2021' ) );
      $wpdb->delete( $wpdb->prefix . 'wc_admin_note_actions', array( 'name' => 'oss_delivery-threshold-warning-2021' ) );
    }
    

    You can remove the snippet after you’ve reloaded your admin page and the note has been removed.

    Cheers

    Same problem here.

    After adding and removing the snippet the popup was gone.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“Delivery threshold reached” message keeps popping up’ is closed to new replies.