E-Mails from Wallee are sent to the customer containing certain files (attachments) , for example the invoice and the packing slip.
Those are having a default filename like "invoice" or "packing slip".
However, it might be neccesary to change these filenames according to the own needs.
This can be achieved by changing the twig template accordingly.
The template can be found on the following path within the affected space:
document/template/payment/invoice.twig
within this file, the text being used is within the "title" block. This title block references to another file which holds the actual string:
document/template/payment/snippet/invoice.twig
This file needs to be changed for changes to take effect.
The filees can be adjusted and customized as well. For example, for if the packing slip should be different when a merchant reference is present within the transaction, this can be done as follows:
In the following snipped, we reference to a separate file handling the string seperately, which adds more flexibility.
(on the file document/template/payment/invoice.twig)
{% block title %} {% if completion.lineItemVersion.transaction.merchantReference is defined %}
{% include './snippet/packing-slip-for-order.twig' with { 'orderReference' : completion.lineItemVersion.transaction.merchantReference } %} {% else %} {% include './snippet/packing-slip.twig' %} {{ completion.id }} {% endif %} {% endblock %}
Comments
0 comments
Please sign in to leave a comment.