-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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
- 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
Labels
No labels