Support » Plugins and Hacks » [Resolved] Add due date

[Resolved] Add due date

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ewout


    Hi Jay,
    Yes this is possible. You have to create a custom PDF invoice template (see FAQ), then insert the following code in the location where you want to insert the due date:

    $order_date = $wpo_wcpdf->export->order->order_date;
    $invoice_date = get_post_meta($wpo_wcpdf->export->order->id,'_wcpdf_invoice_date',true);
    $due_date = date_i18n( get_option( 'date_format' ), strtotime( $order_date . ' + 14 days') );
    echo 'Due date: ' . $due_date;

    If you use the invoice date, you could also change $order_date in the line before echo to $invoice date.



    Ewout! You are amazing 🙂 Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Add due date’ is closed to new replies.