Signup

Custom cart attributes for internal email notifications

If you are using custom cart attributes and want that information to appear within your internal pickup and delivery emails, you can use the following code snippet.

{% for note_attribute in note_attributes %}
  {% if note_attribute.name == 'Custom-Attribute-Name' %}
    <p><strong>{{note_attribute.name}}:</strong> {{ note_attribute.value }}</p>
  {% endif %}
{% endfor %}

Just remember to replace the word Custom-Attribute-Name  with your attributes own name. Please note that the code is case sensitive


If you have multiple attributes you could also do something like this:

{% for note_attribute in note_attributes %}
  {% switch note_attribute.name %}
    {% case "Custom-Attribute-Name" %}
      <p><strong>{{note_attribute.name}}:</strong><br/>
      {{ note_attribute.value }}</p>
      {% break %}
    {% case "Custom-Attribute-Name-2" %}
      <p><strong>{{note_attribute.name}}:</strong><br/>
      {{ note_attribute.value }}</p>
      {% break %}
  {% endif %}
{% endfor %}
S
Sandy is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.