How can I show Avis option on Mail Order confirmation/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.

After locating the tag {% endif %}

paste the following code snippet:

{% 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