About the order status update and delete icon

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate About the order status update and delete icon

Viewing 4 reply threads
  • Author
    Posts
    • #31881
      MOHO
      Participant

      1. How could i hide delete icon at order list?
      I don’t want the shop manager delete order

      2. When the shop manager change the order status as “Completed”, then hide “update” button
      I don’t want the shop manager change the completed order for another other status, because completed = finish, can’t change.

      Thanks

      Attachments:
      You must be logged in to view attached files.
    • #32057
      WCFM Forum
      Keymaster

      Hi,

      1. How could i hide delete icon at order list?

      – Please add this code for the purpose –
      add_filter( 'wcfm_is_allow_order_delete', '__return_false' );
      Well, this will work after WCFM next update.

      2. When the shop manager change the order status as “Completed”, then hide “update” button

      – Add this code for the purpose –

      add_filter( 'wcfm_status_update_block_statuses', function( $block_statuses ) {
      	$block_statuses = array( 'completed', 'refunded', 'cancelled', 'failed' );
      	return $block_statuses;
      });

      Thank You

    • #32069
      MOHO
      Participant

      I got it

      1. i add it, and wait your next version

      2. it work, thanks

    • #32257
      WCFM Forum
      Keymaster

      Hi,

      Please check this with WCFM 5.1.0

      Thank You

    • #32345
      MOHO
      Participant

      Thanks it work now.

      Please close it.

Viewing 4 reply threads
  • The topic ‘About the order status update and delete icon’ is closed to new replies.