You can use the order.payment_method_name variable to include payment methods of payments made in the Order Template and Worksheet Template.
Here is an example of how you can modify the default Order Template to include payment methods for payments made:
Default Code
{% else %}
<li><label>Date</label><span>{{ order.date_ordered | date: "%d/%b/%Y" }}</span></li>
{% if order.date_due %}
<li><label>Date Ship By</label><span>{{ order.date_due | date: "%d/%b/%Y" }}</span></li>
{% endif %}
{% endif %}
Custom Code
Add the code in red to the default code shown above as follows:
{% else %}
<li><label>Date</label><span>{{ order.date_ordered | date: "%d/%b/%Y" }}</span></li>
<li><label>Payment Method</label><span>{{ order.payment_method_name }}</span></li>
{% if order.date_due %}
<li><label>Date Ship By</label><span>{{ order.date_due | date: "%d/%b/%Y" }}</span></li>
{% endif %}
{% endif %}
Result
Still have questions? Use the Search Tool at the top of the page to find more related guides. Need help? Click the icon to submit a support ticket – our Client Services team is ready to assist!
Comments
0 comments
Please sign in to leave a comment.