How can I show Avis option on Order confirmation Email/Order invoice/New order?

In case options already show, this can also be used to remove apo tags from your document as well.

Step 1: Access Confirmation Email Template

  • Navigate to Settings > Notifications > Customer Notifications.

  • Locate and select Order confirmation

  • Click on the Edit code button to access the email template’s HTML code.

OR

Step 1: Access New Order Email Template

  • Navigate to Settings > Notifications > Staff Notifications

  • Locate and select New order

  • Click on the Edit code button to access the email template’s HTML code

Step 2: Place your cursor in the HTML body of the template use the shortcut Ctrl + F (Command + F on Mac) to open the search function.

Search for line.variant.title in the existing code and the tag {% endif %}

Paste the following code snippet after the tag {% endif %}.

NOTE: There should be three separate blocks in total that contain this code, so please make sure to add the snippet after each of those three {% endif %} tags.

{% unless line.properties == empty %}
<ul>
  {% for property in line.properties %}
	{% if property.first contains '_apo' %}{% continue %}{% endif; %}
  <li> {{ property.first }}: {{ property.last }}</li>
  {% endfor %}
</ul>
{% endunless %}

Step 3: Save changes

Click on the “Save” button to apply the changes to the template.

Wait for approximately 30 seconds for the changes to take effect.

Last updated