Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Adding a Cutom Order Status.
- This topic has 4 replies, 2 voices, and was last updated 5 years, 8 months ago by WCFM Forum.
- AuthorPosts
- April 16, 2019 at 12:16 am #58012johanParticipant
Hi, to streamline orders we have acquired a custom ‘Order Status’ add-on for Woocommerce. We have added a Status called ‘Payment Received’. We wantthe status ‘Payment Received’ to trigger auto payment. Although it shows up as an ‘Order Status Choice’ it does not show in the heading, not for Admin or the Vendor – see attachments. Our Vendors does not control ‘Statuses’ thus need the heading to indicate the Status of their orders. Both do receive an email indicating the Order Status change but we would like it to show in the heading.
Can you supply some short code to allow for the below two extra order status to show?
Name: Payment Received
Slug: wc-payment-reName: Order Sent
Slug: wc-order-sentIf possible use the same icon as the status ‘Completed’.
Regards,
Ta
JayAttachments:
You must be logged in to view attached files. - April 17, 2019 at 11:35 am #58280WCFM ForumMember
Hi,
Please use this code –
add_filter( 'wcfmu_orders_menus', function( $order_menus ) { $order_menus['payment-re'] = 'Payment Received'; $order_menus['order-sent'] = 'Order Sent'; return $order_menus; }, 50 ); add_filter( 'wcfm_allowed_order_status', function( $order_status ) { $order_status['wc-payment-re'] = 'Payment Received'; $order_status['wc-order-sent'] = 'Order Sent'; return $order_status; }, 50 );
Thank You
- April 18, 2019 at 8:13 am #58401
- April 18, 2019 at 8:21 am #58403
- April 18, 2019 at 5:37 pm #58481WCFM ForumMember
HI,
Don’t worry about this two places, we will add Custom order status support in next update.
Thank You
- AuthorPosts
- The topic ‘Adding a Cutom Order Status.’ is closed to new replies.