• Resolved e3boss

    (@e3boss)


    Hello,

    even if I can generate and download the invoice PDF of an order from order’s page in the back-end and users can download it from orders’ page in the front-end, the PDF is never present as attachment in e-mails even if I have setted it in the settings and even if I send it from order’s page in the back-end.

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @e3boss,

    Could you please send me a screenshot of your Attach to setting, under WooCommerce?> PDF?Invoices?> Documents?> Invoice? You can use imgbb.com to upload the image, and then share the URL here.

    Also, check the WooCommerce logs to see if there are errors with the wpo-wcpdf or fatal-errors prefix. If so, please share the logs with us. You’ll find the logs under WooCommerce > Status > Logs. See Where to find error logs

    Finally, go to WooCommerce > Status > System Status, click on Get system report, then click on Copy for support, paste it on https://pastebin.com/ (set a paste expiration for one week, just in case), and finally paste the pastebin.com link in your reply here.

    Thread Starter e3boss

    (@e3boss)

    Hi,

    here is the screenshot: https://ibb.co/TMzf6tt

    I checked WooCommerce’s logs but there are no errors.

    Here is WooCommerce’ System report: https://pastebin.com/wvV9h0Vs

    Thanks

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I have a few more questions:

    1. I wonder if the error displayed in your screenshot has something to do with this issue:

      Do you have some code snippets set in your store related with our plugin?
    2. Are you able to open a PDF invoice, even if it’s not being attached in the email notifications?
    Thread Starter e3boss

    (@e3boss)

    Hi,

    I created a personal design for my invoices, completely different from the standard one, but yes, I can open them and I don’t have code snippets related to your plugin.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Please follow these steps to find out if the issue occurs before the message is sent:

    1. Install and activate the WP Mail Logging by MailPoet plugin
    2. Open an existent order, find the Send order email panel, on the right side, select one of the email notification in which you attach the invoice, e.g. Complete order, and click on Save order and send email:

      A screenshot that display the Send order email panel from WooCommerce with the Completed order notification selected in the dropdown

    3. Then go to Tools > WP Mail Log, find your last email, and check if there are files in the Attachments column, and/or any notice on the Error column:

      A screenshot that display the WP Mail Logging plugin log screen

    4. Share the results with us ??
    Thread Starter e3boss

    (@e3boss)

    Hello,

    I followed your instructions but there are no attachments and no errors: https://ibb.co/pK01bpX

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Could you please try disabling all your active plugins, except WooCommerce and WooCommerce PDF Invoices & Packing Slips, create a new test order with your admin user, and check if the PDF invoice is attached?

    If so, try activating a plugin at a time, send the Customer invoice / Order details email on each plugin activation, to check if the invoice is still attached correctly, and repeat the process with each plugin:

    An animated screenshot that displays the Customer invoice selection within the Send order email panel

    That way, you should find the plugin that is causing the issue.

    Let me know if you find the “culprit”!

    Thread Starter e3boss

    (@e3boss)

    Hello,

    I followed your instructions but there aren’t attachments or errors on the logs.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    That’s weird. The invoice should to be attached to that email, if you still have these settings. So, just to be sure, did you try by disabling all your active plugins, and then send the Customer invoice / Order details email on each plugin activation, as I suggested above?

    If so, since you said above that you created a personal design (what I understand as a custom PDF template), could you please temporarily switch to the Simple template, under WooCommerce?> PDF?Invoices?> General?> Choose a template, and run the tests again? If the tests work, that will mean that the root of the issue is in the code of your custom template.

    Thread Starter e3boss

    (@e3boss)

    I disabled everything but WooCommerce, WooCommerce PDF Invoices & Packing Slips and WP Mail Logging but now I tried, as you suggested, to switch template and now it send the attachment too.

    So I need to understand which is the problem with my template.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Finding the root of the problem is a good start to fixing it: I hope you get it fixed soon!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘No PDF attached to e-mails’ is closed to new replies.