Send Order Mail after confirmation

WPPizza – A Restaurant Plugin for WordPress Support General Support Send Order Mail after confirmation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15311
    elkhaiat
    Participant

      Hi.

      I try to send a confirmation Mail to the customer after I update the status in the backend to “confirmed”.

      Found and love this: https://www.wp-pizza.com/topic/send-email-on-admin-status-update/

      BUT: It sends a plain Mail (see screenshot)

      Plain Mail after confirmation

      How can I achieve that the normal order mail (which the customer normally receives after ordering) will be sent, after changing the status to “Bestätigt” (Confirmed)?

      Thank you very much.

      #15316
      Olly
      Admin & Mod

        if you look at the code at
        https://www.wp-pizza.com/topic/send-email-on-admin-status-update/

        it sets plaintext headers and only what you set the message to be like inside the $message variable

        so the message, headers etc you want to send/set you have to create.
        if you want to use one of the templates, look at the admin-get-json.php as a starting point
        inside

        
        /*************************************************************************************
        *
        *
        *	[order history -> print order]
        *
        *
        *************************************************************************************/
        if($_POST['vars']['field']=='print-order' && $_POST['vars']['id']>=0){
        /*........code..........*/
        }
        
      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘Send Order Mail after confirmation’ is closed to new replies.