• Resolved Jpl75

    (@jpl75)


    Hi,

    Ok for download the order invoice, but there is no date and no card data.
    It could be useful on an invoice to prove the date of purchase (in case of guarantee for example)
    Could it be possible to print the order date (under the order number), and under the last line :
    – type of card : Visa, Mastercard, …
    – last 4 numbers
    – expiry date.
    In fact I need the same informations than on the order confirmation.
    Thanks.

    Regards.
    Jean-paul.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there @jpl75,

    hope you’re doing good today! ??

    This would require some extended custom development I’m afraid. Also keep in mind that all card information remains in the payment gateways, not in the WP database.

    Thank you,
    Dimitris

    Thread Starter Jpl75

    (@jpl75)

    Hi Dimitris,

    Informations are known : you are able to give them on the order confirmation by mail (received by the customer) and you know the date of purchase.
    So it would be great to have these informations on the invoice.
    At least, customers need the date of purchase on the invoice. Its a minimum for a guarantee claim.
    Never mind the bank card informations if its too complicated. Customer knows how he paid the order.
    I really hope that you can do something.
    Thanks.
    Regards.

    Jean-Paul.

    Thread Starter Jpl75

    (@jpl75)

    Hi Dimitris,

    My son made the “development” in 5 minutes !: one modification in “class-mp-pdf-invoice.php” and one in “invoice.php”. Now, I have the date on the invoice.
    If someone is interested, I can give more details.

    Regards.
    Jean-Paul.

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there @jpl75,

    that’s great news! ??

    If you could share the workaround here for the rest of the community, it’d be awesome!

    Warm regards,
    Dimitris

    Thread Starter Jpl75

    (@jpl75)

    Hi everybody,

    1. In the file ? class-mp-pdf-invoice.php ?: you must declare the variable ? paid_time ? as ? post_date ? of $order (+ french date format). I found “post-date” in the data base mysql of my host.
    Path : > plugin editor > Marketpress > includes > addons > mp-pdf-invoice > class-mp-pdf-invoice.php
    After line 297, you add the following new line :
    ‘{{paid_time}}’ => date(‘d/m/Y’, strtotime($order->post_date)),

    2. In the file “invoice.php”, you modify the line 60 containing “order_id”.
    Path : > plugin editor > Marketpress > includes > addons > mp-pdf-invoice > templates > default > invoice.php
    Line 60 : <h3><?php _e( “Invoice”, “mp” ) ?> #{{order_id}} – {{paid_time}}</h3>

    Regards.
    Jean-Paul.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Date and card data on PDF invoice’ is closed to new replies.