I want to include a link to complete payment if the order is tagged with “CODiDirect-test” in the Shipping Confirmation email (and if they haven’t completed payment at checkout but that condition is already set up for the order to be tagged “CODiDirect-test”). This is what I have:
{% if customer.orders.order.tags CONTAINS "CODiDirect-test"}
<table>
<table>
{% if payment_terms.type == 'receipt' and payment_terms.next_payment.due_at == nil %}
{% assign due_date = 'now' %}
{% else %}
{% assign due_date = payment_terms.next_payment.due_at | default: nil %}
{% endif %}
## Payment of {{ order.total_outstanding | money }} is due {{ due_date | date: format: 'date' }}
{% if checkout_payment_collection_url %}
<table>
<table>
<tr>
<td>
Pay now
</td>
</tr>
</table>
{% endif %}
Everything shows up how I want it to, but I can’t get it to only show on orders with the tag “CODiDirect-test”. What do I need to change?
Thanks!