Can Order Printer app show the sales channel on invoices?

Can Order Printer app show the sales channel on invoices?

hill_jonathan
Tourist
7 0 2

Hello,

 

Is there any way to indicate the sales channel where an order was placed on an invoice generated using the Order Printer app? If the order was placed through POS, is it possible to have the POS location name listed on the invoice? 

 

Many thanks,

Jonathan

Replies 3 (3)

vampirefreaks
Tourist
9 0 1

this would be useful for me as well.

vampirefreaks
Tourist
9 0 1

Figured it out!  Channel info is in the {{ attributes }} variable.

Seems to be in {{attributes.Channel}} for facebook / instagram orders but for other channels it is sometimes another name inside the attributes variable.  If you just print out {{ attributes }} it will show the info for that order.

here's an example of my code i'm using to specify between facebook / amazon / etsy ordres:

 

{% if attributes.Channel && attributes.Channel != "Online Store" %}
<div style="font-weight:bold">[{{ attributes.Channel }}]</div>
{% endif %}
{% if attributes.['Amazon Order Id'] %}
<div style="font-weight:bold">[Amazon]</div>
{% endif %}
{% if attributes.['ETSY Order'] %}
<div style="font-weight:bold">[Etsy]</div>
{% endif %}
{% if attributes.['eBay Order Id'] %}
<div style="font-weight:bold">[Ebay]</div>
{% endif %}

hill_jonathan
Tourist
7 0 2

Thank you for responding! My {{attributes}} variable does not have a .Channel field; I think one of your apps is editing the attributes variable to add this information.