When you create an invoice for a Shopify order in Pickware, the document is automatically saved on the order. In addition, a link to the invoice is stored in a metafield on the order in Shopify. You can embed this link in your email templates so that your customers can download the invoice directly from the email.
How do I set up my email template?
You can customize your email templates in Shopify so that your customers can access the invoice via a link. To do this, insert the code snippet provided below into the desired email template in Shopify. Make sure the email is only sent after the invoice has already been created in Pickware. We recommend customizing the Shipping confirmation email template of your Shopify shop.
We recommend inserting the code snippet in the HTML section (starting at <!DOCTYPE html>) below the Fulfillment Tracking Number section. For more information on customizing your email templates, see the Shopify documentation.
Code snippet
{% if metafields.pickware.pickware_invoice_url %}<tr><td class="actions__cell"><table class="button main-action-cell" style="width: 100%; margin-top: 12px;"><tbody><tr><td class="button__cell"><a href="##{{ metafields.pickware.pickware_invoice_url }}" class="button__text">Rechnung herunterladen</a></td></tr></tbody></table></td></tr>{% endif %}