Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › About the order status update and delete icon
- This topic has 4 replies, 2 voices, and was last updated 6 years, 2 months ago by MOHO.
- AuthorPosts
- September 18, 2018 at 2:04 am #31881MOHOParticipant
1. How could i hide delete icon at order list?
I don’t want the shop manager delete order2. 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. - September 19, 2018 at 10:37 pm #32057WCFM ForumMember
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
- September 20, 2018 at 1:19 am #32069MOHOParticipant
I got it
1. i add it, and wait your next version
2. it work, thanks
- September 22, 2018 at 3:48 pm #32257WCFM ForumMember
Hi,
Please check this with WCFM 5.1.0
Thank You
- September 24, 2018 at 3:38 am #32345MOHOParticipant
Thanks it work now.
Please close it.
- AuthorPosts
- The topic ‘About the order status update and delete icon’ is closed to new replies.