Veja o artigo "Passo 2: configurar a sua loja Shopify" »
O Shopify tem o seu próprio sistema de notificação. A aplicação requer alterações nos 2 modelos de correio eletrónico para incluir uma ligação que permita aos utilizadores verificar o estado da e o envio automático de emails com os documentos fiscais gerados, como faturas-recibo e notas de crédito, para os clientes.
1 - Confirmação de encomenda
- Navegue até Shopify Store Admin > Settings > Notifications > Customer notifications.
- Localize Order Processing > Order Confirmation na lista, selecione-o e selecione Edit Code.
- Deve adicionar este snippet antes do bloco do email footer.
<!-- Invoice Section START--> <table class="row section"> <tr> <td class="section__cell"> <center> <table class="container"> <tr> <td> <h3>Invoice</h3> </td> </tr> </table> <table class="container"> <tr> <td> <table class="row"> <tr> <td class="customer-info__item" style="text-align: center; padding: 20px 0;"> <p style="margin-bottom: 15px;">View your invoice for this order</p> <a href="https://ecommerceplugins.toconline.pt/invoice?s={{ shop.url }}&o={{ id }}&d={{created_at | date: '%s' }}" style="display: inline-block; padding: 12px 25px; background-color: {{ shop.email_accent_color }}; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: bold; font-size: 16px;">View Invoice</a> </td> </tr> </table> </td> </tr> </table> </center> </td> </tr> </table> <!-- Invoice Section END-->
2 - Reembolso de encomenda
- Navegue até Shopify Store Admin > Settings > Notifications > Customer notifications.
- Localize Order Processing > Order Refund na lista, selecione-o e selecione Edit Code.
- Deve adicionar este snippet antes do bloco do email footer.
<!-- Invoice Section START--> <table class="row section"> <tr> <td class="section__cell"> <center> <table class="container"> <tr> <td> <h3>Invoice</h3> </td> </tr> </table> <table class="container"> <tr> <td> <table class="row"> <tr> <td class="customer-info__item" style="text-align: center; padding: 20px 0;"> <p style="margin-bottom: 15px;">View your invoice for this order</p> <a href="https://ecommerceplugins.toconline.pt/invoice?s={{ shop.url }}&o={{ order.id }}&r={{ id }}&d={{ order.created_at | date: '%s' }}" style= "display: inline-block; padding: 12px 25px; background-color: {{ shop.email_accent_color }}; color: #ffffff; text-decoration: none; border-radius: 4px; font-weight: bold; font-size: 16px;">View Invoice</a> </td> </tr> </table> </td> </tr> </table> </center> </td> </tr> </table> <!-- Invoice Section END-->
Nesta altura terá todos os passos configurados e poderá começar a emitir faturas automaticamente através da sua loja online!