• Resolved victorfpaula

    (@victorfpaula)


    Hello, I use a plugin to pay off line at a restaurant
    I need this information to appear in the PDF sent by email.

    I discovered in a survey the following code:

    / **
    ?* @snippet Add "Note to Customer" @ WooCommerce PDF Invoice
    ?* @ how-to watch tutorial @ https://businessbloomer.com/?p=19055
    ?* @sourcecode https://businessbloomer.com/?p=21728
    ?* @author Rodolfo Melogli, Hans Schuijff @ dewitteprins.nl
    ?* @compatible WC 3.1.0, Woo P.I.P.S. 2.0+
    ?* @donate $ 9 https://businessbloomer.com/bloomer-armada/
    ?* /
    ?
    add_action ('wpo_wcpdf_after_order_details', 'bbloomer_add_note_to_customer_to_PDF_invoice_new', 10, 2);
    ?
    function bbloomer_add_note_to_customer_to_PDF_invoice_new ($ template_type, $ order) {
    ????$ document = wcpdf_get_document ($ template_type, $ order);
    ????$ document-> order_notes ();
    }
    
    

    I added this code in my, template-functions.php
    But I have a problem, this information does not arrive in the pdf that is sent by email.

    Can someone help me please?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Victor,
    I’m not sure I understand what it is you want to display in the invoice. The snippet you posted here is for printing the order notes (the notes you as admin can add to an order in the right sidebar of the backend of an order) after the order details.

    Let us know and we’ll do our best to help!

    Thread Starter victorfpaula

    (@victorfpaula)

    yes, use a payment plugin called “Woo Payment On Delivery,” which generates a note, containing the payment method of the customer, at the time of purchase.
    But this information, is not arriving at email PDF.

    Plugin Contributor kluver

    (@kluver)

    Hi @victorfpaula,

    The payment method should be displayed on the invoice by default if you are using our Simple template that comes standard with our plugin.

    It should be on the top right of your invoice with the rest of the order data.

    Thread Starter victorfpaula

    (@victorfpaula)

    Yes, the pattern works perfectly.

    My problem is, a note inserted in the request, at the time of purchase is not sent in the pdf by email.
    Using the code that is positioned on this information appears, but only in the pdf within the request panel of woocommerce.
    I need this information to be sent in the PDF of the email.

    Plugin Contributor Ewout

    (@pomegranate)

    If the note doesn’t show in the email that is sent to your customer, it probably means that technically this note is added by your payment gateway after the email has already been sent. I recommend contacting the developers of the Woo Payment On Delivery plugin to see if they can help in this matter.

    Thread Starter victorfpaula

    (@victorfpaula)

    I noticed another problem, sometimes inside the panel in woocommerce this note does not appear in the generated pdf, even containing the note in the request. Some work perfectly and others do not, randomly.
    can you help me?
    I need a lot of information you have in the pdf generated in the plugin of yours, it is perfect!

    Plugin Contributor Ewout

    (@pomegranate)

    I’m afraid that without more specific information there’s not much we can do to help here (also considering that this is a free plugin for which we can only provide limited support).
    Do the notes of the orders that include it in the PDF and the ones that don’t have the same color in the backend? The code you have used only prints the notes for the customer (blue), not the private notes (pink/purple). More information: Displaying order notes

    Thread Starter victorfpaula

    (@victorfpaula)

    I did not realize that!
    the notes have different colors
    really only the blues are coming out … how do I add all the other colors? it is possible?

    Thread Starter victorfpaula

    (@victorfpaula)

    thank you! worked perfectly!

    Plugin Contributor Ewout

    (@pomegranate)

    You’re welcome! Do note that if you include the private notes too, this will also print all the messages WooCommerce records for the status changes etc.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Snd request note by email (URGENT)’ is closed to new replies.