Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

custom order status “Passed for delivery” and suborders.

WCMp Core

Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #140987
      l.gan
      Participant

      Hello

      I need your help.

      Using a special code, I added a new status for the order “Passed for delivery”. In code it’s “Delivered”
      Also, when this status is established, a letter is sent to the client.

      1. How can I make sure that my custom order status is automatically set when sending the track number data?
      I checked, and from the vendor dashboard I can set my custom status, but when sending the track number, it still says the standard “Processing”.

      2. If I manually set the status “Transferred for delivery” from the dashboard, then the client receives an email with the number of the main order, and not the number of the sub-order.

      For example: Order 9407, suborder 9408. I set my custom status “Transferred to delivery” from the supplier panel, and the Client received an email with the Order number 9407. I need the suborder number 9408 to be indicated.
      Also, for example, the situation: I can delete a part of the code with a message for the buyer about the status change, but what if:

      the supplier does not have a track order, but a “courier” will go, which means he will not be able to send him a track number and the client will not receive a notification letter. In theory, the code from my custom code could work here.

      Is it possible to somehow combine your message about sending the track number and changing the status to my custom “Transferred to delivery” so that one option (your option) is sent a letter about sending (track number template). ??

      I hope I was able to explain correctly. Please help me team.

    • #140988
      l.gan
      Participant
      This reply has been marked as private.
    • #141000

      Hi,
      kindly use below hook to change the order status after send the shipping email

      do_action('wcmp_after_vendor_ship_save', $comment_id, $order_id, $tracking_url, $tracking_id);
      Copy

      for point no 2 kindly share a video.

      Regards,

    • #141010
      l.gan
      Participant
      This reply has been marked as private.
    • #141014
      l.gan
      Participant

      Regarding question number 2 (sending notification when status changes to my custom status)

      So:

      a) What is now in the standard settings: When the supplier sends the track number, the buyer receives a letter stating that part of the order has been sent.

      b) What we decide now: I ask you to combine the automatic change of the order status to my custom status from the code above if the supplier sends a tracking number. (Accordingly, a letter is also received stating that part of the order has been transferred for delivery). – we solve this issue above.

      c) My question is: How to send the form of the letter of the letter, the form of your plugin from point A and B (in which the track number is sent) when my custom status is set to the suborder “Submitted for delivery”? For example: I don’t send a tracking number, but I just manually change the status to my custom “Sent for delivery” – I want the client to receive a letter too.
      _________

      In the code I posted, there is a part of the code that is responsible for sending email notifications, but it informs about the main order and not about the suborder. and sends messages in cases A and B (it turns out that 2 letters come – from your plugin with a track number and from custom code)

    • #141032

      @l.gan, we have provided the filter to you, this is not a code.

      You need to use that filter to add your own custom code. Please note, the custom flow you are looking for, requires good amount of coding.

    • #144891

      Hi @I.gan, we haven’t heard back from you for a while.
      So we presume this issue has been fixed. We are closing this for now.

Viewing 6 reply threads

The topic ‘custom order status “Passed for delivery” and suborders.’ is closed to new replies.