Skip to content

Empty PDF voucher  #87

@JoeriE

Description

@JoeriE

Describe the bug

I attach a PDF voucher to my order confirmation emails immediately after an order is finished. The PDF voucher is always blank. If I resend the confirmation mail via the admin, the PDF voucher is correct.

It seems that the codes are not found. If I loop through the code, it always shows 'No code found' after the automatic email.

{% for code in codes %}
  {# PDF template #}
{% else %}
  No code found
{% endfor %}

Steps to reproduce

  1. Attach PDF to email that is directly send after order is completed.

Craft CMS version

3.7.34

Plugin version

2.7.4

Multi-site?

No

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions