• Resolved pjoosen

    (@pjoosen)


    Hi Ewout,

    We’re selling virtual products, but cannot get the pdf’s as attachment in the emails. When we change the status of an order manually, we do receive the PDF with the emails. So it seems there’s a difference from the automatic change of status and the manual change.

    Just to be sure, we’ve enabled attachments for all emails.

    We’ve also tried making it downloadable, so it immediately has the status Completed. That doesn’t help.

    Hope you can help. Thx.

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

    (@pomegranate)

    Hi! This could be payment gateway related. Which payment gateway plugin/provider do you use?

    Thread Starter pjoosen

    (@pjoosen)

    It’s CardGate (PSP). Do you think there’s a difference in status update they send?

    Thanks!

    Plugin Contributor Ewout

    (@pomegranate)

    which plugin, exactly?
    Not the status update per se, but possibly when & how they trigger emails. Gateways following the WooCommerce guidelines don’t have this issue, but some use more exotic methods, triggering emails or status updates on their own behalf. I don’t know about GardGate though.

    Do you not get the email, or do you get the email without attachment?

    Thread Starter pjoosen

    (@pjoosen)

    Is this plugin: https://www.ads-software.com/plugins/cardgate/

    We do receive the emails, it’s just without any attachment, unless we change the status to ‘completed’ manually, then we do receive the invoice PDF.

    Plugin Contributor Ewout

    (@pomegranate)

    I checked the source and indeed they’re using custom callback endpoints with a too low priority. I’ll look into this further to see if this is something I can fix from our end!

    Thread Starter pjoosen

    (@pjoosen)

    Thanks, Ewout!

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! I think I have a solution, although I would like to do a bit more testing to make sure it doesn’t break compatibility with other plugins & extensions. If you’re not afraid to edit plugin files, you could try this change in wp-content/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-documents.php:

    https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/commit/4357a6c66a71f83f478426727f65bee1deb19dce

    Let me know if that works for you!

    Thread Starter pjoosen

    (@pjoosen)

    Hi Ewout,

    I tested it, and it works! It’s just that after an update from the plugin, this change will be overwritten.

    Is there a way to make this future proof?

    Thanks!

    Regards,
    Paul

    Plugin Contributor Ewout

    (@pomegranate)

    Glad to hear it’s resolved! That link is a change that will be part of the next release, you won’t get it more future proof than that ??

    Thread Starter pjoosen

    (@pjoosen)

    Hahaha… That’s great, Ewout!

    Thanks for that!

    Regards,
    Paul

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘No PDF attachment with Virtual products’ is closed to new replies.