Support » Plugin: Invoices for WooCommerce » add time for invoice with date

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    Explain a little bit more please. Give me at least an example.

    Plugin Author Bas Elbers

    (@baaaaas)

    Will resolve topic due to inactivity.

    Thread Starter michaelmichel

    (@michaelmichel)

    hello
    i need with invoice date be also time …

    Plugin Author Bas Elbers

    (@baaaaas)

    <?php echo date_i18n( 'Y-m-d H:i:s', strtotime( (string) get_post_meta( $this->order->id, '_bewpi_invoice_date', true ) ); ?>

    Add this to your template to show invoice date with time and be able to change the format. Just use database date with below code.

    <?php echo get_post_meta( $this->order->id, '_bewpi_invoice_date', true ); ?>

    Thread Starter michaelmichel

    (@michaelmichel)

    hello

    thank you for your help … can you explain more how can i add your code and line number

    Plugin Author Bas Elbers

    (@baaaaas)

    You can also try to change the date format within Template settings tab to something like Y-m-d H:i:s. This should also work and you will not have to change template.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘add time for invoice with date’ is closed to new replies.