less than a minute read • Updated 13 days ago
Remove elements from email receipt
How to remove specific elements, like the payment method or processor response, from the email receipt.
You can remove elements from the Foxy html email receipt that the customer and store receives for transactions (if enabled). This example removes the Processor Response and Payment Method elements.
1Go to your email template here.
2After the text input box labeled receipt html email template:, you'll see if you like, choose a default template:, select Custom Template.
3Go to the receipt html email template: text area and look for these lines:
<h3 style="margin: 0;padding: 0;font-family: Verdana, Helvetica, Arial, sans-serif;color: #666666;font-weight: bold;font-size: 13px;">{{ config.lang.checkout_payment_method|raw }}</h3> <div style="margin: 0;padding: 0;font-family: Verdana, Helvetica, Arial, sans-serif;margin-top: -9px;letter-spacing: 1px;">{{ cc_number_masked }} {% if cc_type|lower in ['amex','discover', 'maestro', 'mastercard', 'solo', 'switch', 'visa'] %}<img src="https://{{ config.store_domain }}/static/images/payment_logos/email/{{cc_type|lower}}.png" width="35" style="margin: 0;padding: 0;font-family: Verdana, Helvetica, Arial, sans-serif;max-width: 100%;position: relative;top: 6px;">{% endif %}</div> <br style="margin: 0;padding: 0;font-family: Verdana, Helvetica, Arial, sans-serif;">
4Put a <!-- just before the <h3.. and then after the ...sans-serif;"> at the end, close the comment with -->. This will change the code within to be seen as a comment and won't be printed to the screen.
5Now look for these lines:
<h3 style="margin: 0;padding: 0;font-family: Verdana, Helvetica, Arial, sans-serif;color: #666666;font-weight: bold;font-size: 13px;">{{ config.lang.checkout_processor_response|raw }}</h3> {{ processor_response|raw }} <br style="margin: 0;padding: 0;font-family: Verdana, Helvetica, Arial, sans-serif;">
6 Put a <!-- just before the <h3.. and then after the ...sans-serif;"> at the end, close the comment with -->.
7After changing the templates, click Update Template to save and then test.