Order History Edit

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27515
    laurent
    Participant

      Hi Olly,

      Is that possible to display the Total price of each order in the
      Order History ?

      06-May-2017 21:51:41
      Payment By: PAIEMENT À LA LIVRAISON (CASH)
      COD14941075015035
      Status
      Last Status Update:
      06-May-2017 22:31:10
      TOTAL £ 39.00

      For exemple above.

      Thank you

      #27516
      Olly
      Admin & Mod

        try something like this in your functions.php

        
        add_filter( 'wppizza_filter_orderhistory_order_info', 'my_orderinfo_add_total', 10, 4 );
        function my_orderinfo_add_total($markup, $order_id, $customer_details, $order_details){
        /** add total after $markup['last_update'] **/
        $markup['last_update'] .='<div>'.__('Total').': '.wppizza_output_format_price($order_details['total']).'</div>';
        return $markup;
        }
        
        #27568
        laurent
        Participant

          Just perfect!
          Its much more easier to summ up.
          Thank you very much !

          Best
          Lorent

          #27569
          Olly
          Admin & Mod

            >Its much more easier to summ up.
            the reports page already does that ….. just saying

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Order History Edit’ is closed to new replies.