Adding a Cutom Order Status.

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!

Viewing 4 reply threads
  • Author
    Posts
    • #58012
      johan
      Participant

      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-re

      Name: Order Sent
      Slug: wc-order-sent

      If possible use the same icon as the status ‘Completed’.

      Regards,

      Ta
      Jay

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

      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

    • #58401
      johan
      Participant

      Many thanks for the coding.

      It still does not show on the vendor ‘Order heading’. See attachment.

      Will it be possible to get it to show?

      Ta
      Johan

      Attachments:
      You must be logged in to view attached files.
    • #58403
      johan
      Participant

      …and not available as a choice under: Settings >> Marketplace Withdrawal Settings >> Generate auto-withdrawal? >> Order Status for Generate Withdrawal.

      Can this added with some short code?

      Ta,
      Jay

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

      HI,

      Don’t worry about this two places, we will add Custom order status support in next update.

      Thank You

Viewing 4 reply threads
  • The topic ‘Adding a Cutom Order Status.’ is closed to new replies.