• Resolved Websyflex

    (@photooseu)


    Hello,

    on one of my Woocommerce webshops with PDF invoice installed suddenly it doesn’t send an invoice to the customers email. The PDF is send to the admin email address but the customer doesn’t get any PDF.

    There is nothing changed in the website, this happened suddenly.

    On a test website with the same plugins and version numbers everything works as it should be.

    What I tried:

    – deactivated the plugin and reactivate
    – installed the latest version
    – installed a SMTP email sender plugin to check if it’s the php mailer problem
    – installed another plugin with the same options
    – unchecked all the checkboxes and reactivate again
    – checked woocommerce emails if the option is working
    – sending PDF from the order to manually send PDF, not working

    When I install an other plugin that also creates PDF invoices and packing slibs everything works great. Customer and Admin both receives a PDF invoice.

    Switching back to this plugin and customer doesn’t get any PDF attachment.

    I don’t know what to do as I tried everything, didn’t change anything on the website.

    Hope you can help but another plugin does work but I have the reason to use this plugin instead.

    Thanks!!

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

    (@pomegranate)

    Can you check the logs under WooCommerce > Status > Logs to see if there’s an error log ‘wpo-wcpdf-xxx’ with an error that you can connect to this? If you don’t see any errors there, can you check the fatal-error log too?

    Thread Starter Websyflex

    (@photooseu)

    thanks for your quick reply.

    There is no error within logs or fatal error log.

    Plugin Contributor Ewout

    (@pomegranate)

    What happens if you disable the admin attachment and only enable the customer attachment? Which email are you attaching to and what’s the status of the order?

    Plugin Contributor Ewout

    (@pomegranate)

    I noticed you have contacted us in the past via email too, and it looks like you have a code snippet to prevent the attachment for specific payment methods with the wpo_wcpdf_custom_attachment_condition filter (and limiting this to the customer email, so that would explain why you still get the admin email attachment). Could you disable this filter and check for any additional filters too, temporarily disabling them? At least that will rule out a customization causing this.

    Thread Starter Websyflex

    (@photooseu)

    Thanks a lot! This solved the problem. I removed the filter and suddenly everything does work as before.

    Don’t know why this filter is causing problems because it’s installed for months now without any issue.

    At least I keep it removed to not cause further problems.

    Many thanks for your A+ support.

    Plugin Contributor kluver

    (@kluver)

    Hi @photooseu,

    Glad to hear removing the filter solved the issue. But it is a bit strange that its behaviour changed all of a sudden. Could you share your code here so we can see what might have caused the problem? And could you also tell us which payment method the orders had that were related to this problem?

    You had the filter there for a reason, so I assume you would still like it to get executed properly? Maybe we can fix it for you.

    Thread Starter Websyflex

    (@photooseu)

    Hi Kluver,

    I did have a look further in the function.php and it seems a small part of the filter was still there as the payment method was removed some months ago.

    For some reason, it suddenly stopped working. As clients also get an invoice to pay by direct bank transfer it was no problem till this week. Maybe it has to do with the update of woocommerce, don’t know.

    At least the filter is working perfectly when it’s complete ??

    Thanks for your great support and help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘No invoice anymore for the customer’ is closed to new replies.