PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.22
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.22
1.10.25 1.10.24 1.10.23 1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 All 169 releases
woocommerce-pos / templates / gallery / thermal-simple-80mm.xml

thermal-simple-80mm.xml in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.22, at templates/gallery/thermal-simple-80mm.xml

180 lines 5.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!--
2 Simple Thermal Receipt (80mm) — clean, no-fuss receipt for 80mm printers.
3
4 Compared to the detailed 80mm template this drops bill-to/ship-to blocks,
5 refund and tax-rate breakdowns, terms and opening hours. What remains is
6 the information a typical store owner expects on every receipt: store
7 identity, order info, items, totals, payments, order barcode and a
8 thank-you note. Optional sections (logo, tax IDs, customer note, footer
9 imprint) auto-disappear when the underlying data is empty.
10
11 Layout uses width="*" for the label column so the same template renders
12 correctly on both 42- and 48-CPL 80mm printers; do not replace these
13 star columns with hard-coded widths.
14 -->
15 <receipt paper-width="48">
16
17 <!-- ── Logo + store identity ─────────────── -->
18 {{#store.logo}}
19 <align mode="center"><image src="{{store.logo}}" width="200" /></align>
20 {{/store.logo}}
21 <align mode="center">
22 <bold><size width="2" height="2"><text>{{store.name}}</text></size></bold>
23 {{#store.address_lines}}
24 <text>{{.}}</text>
25 {{/store.address_lines}}
26 {{#store.phone}}<text>Phone: {{store.phone}}</text>{{/store.phone}}
27 {{#store.email}}<text>Email: {{store.email}}</text>{{/store.email}}
28 {{#store.tax_ids}}
29 <text>{{#label}}{{label}}: {{/label}}{{value}}</text>
30 {{/store.tax_ids}}
31 </align>
32 <line />
33
34 <!-- ── Order info ─────────────── -->
35 <row>
36 <col width="12">{{i18n.order}}:</col>
37 <col width="*" align="right">#{{order.number}}</col>
38 </row>
39 <row>
40 <col width="12">{{i18n.date}}:</col>
41 <col width="*" align="right">{{order.created.datetime}}</col>
42 </row>
43 {{#cashier.name}}
44 <row>
45 <col width="12">{{i18n.cashier}}:</col>
46 <col width="*" align="right">{{cashier.name}}</col>
47 </row>
48 {{/cashier.name}}
49 {{#customer.name}}
50 <row>
51 <col width="12">{{i18n.customer}}:</col>
52 <col width="*" align="right">{{customer.name}}</col>
53 </row>
54 {{/customer.name}}
55
56 <!-- ── Items ─────────────── -->
57 <line />
58 {{#lines}}
59 <bold><text>{{name}}</text></bold>
60 {{#sku}}<text> SKU: {{sku}}</text>{{/sku}}
61 {{#line_savings}}
62 <text> {{i18n.regular_price}}: {{regular_price_display}}</text>
63 {{^savings_in_discounts}}
64 <row>
65 <col width="*"> {{i18n.savings}}</col>
66 <col width="14" align="right">-{{line_savings_display}}</col>
67 </row>
68 {{/savings_in_discounts}}
69 {{/line_savings}}
70 {{#discounts}}
71 <row>
72 <col width="*"> @ {{unit_subtotal_display}}</col>
73 <col width="12" align="right">-{{discounts_display}}</col>
74 </row>
75 {{/discounts}}
76 <row>
77 <col width="*"> {{qty}} x {{unit_price_display}}</col>
78 <col width="12" align="right">{{line_total_display}}</col>
79 </row>
80 {{/lines}}
81
82 <!-- ── Fees / Shipping / Order-level discounts ─────────────── -->
83 {{#fees}}
84 <row>
85 <col width="*">{{label}}</col>
86 <col width="14" align="right">{{total_display}}</col>
87 </row>
88 {{/fees}}
89 {{#shipping}}
90 <row>
91 <col width="*">{{label}}</col>
92 <col width="14" align="right">{{total_display}}</col>
93 </row>
94 {{/shipping}}
95 {{#discounts}}
96 <row>
97 <col width="*">{{i18n.discount}}{{#label}}: {{label}}{{/label}}</col>
98 <col width="14" align="right">-{{total_display}}</col>
99 </row>
100 {{/discounts}}
101
102 <!-- ── Totals ─────────────── -->
103 <line />
104 <row>
105 <col width="*">{{i18n.subtotal}}</col>
106 <col width="14" align="right">{{totals.subtotal_display}}</col>
107 </row>
108 {{#tax_summary}}
109 <row>
110 <col width="*">{{#tax.display_excl}}{{label}}{{#rate}} ({{rate}}%){{/rate}}{{/tax.display_excl}}{{#tax.display_incl}}{{i18n.included_tax}}: {{label}}{{#rate}} ({{rate}}%){{/rate}}{{/tax.display_incl}}</col>
111 <col width="14" align="right">{{tax_amount_display}}</col>
112 </row>
113 {{/tax_summary}}
114 <line style="double" />
115 <row>
116 <col width="*"><bold>{{i18n.total}}</bold></col>
117 <col width="14" align="right"><bold>{{totals.total_incl_display}}</bold></col>
118 </row>
119 {{#totals.total_saved_incl}}
120 <row>
121 <col width="*">{{i18n.total_saved}}</col>
122 <col width="14" align="right">{{totals.total_saved_incl_display}}</col>
123 </row>
124 {{/totals.total_saved_incl}}
125 <line style="double" />
126
127 <!-- ── Customer note ─────────────── -->
128 {{#order.customer_note}}
129 <line style="dashed" />
130 <bold><text>{{i18n.customer_note}}</text></bold>
131 <text>{{order.customer_note}}</text>
132 {{/order.customer_note}}
133
134 <!-- ── Payments ─────────────── -->
135 {{#payments.0}}
136 <line style="dashed" />
137 <bold><text>{{i18n.paid}}</text></bold>
138 {{/payments.0}}
139 {{#payments}}
140 <row>
141 <col width="*">{{method_title}}</col>
142 <col width="14" align="right">{{amount_display}}</col>
143 </row>
144 {{#tendered}}
145 <row>
146 <col width="*"> {{i18n.tendered}}</col>
147 <col width="14" align="right">{{tendered_display}}</col>
148 </row>
149 {{/tendered}}
150 {{#change}}
151 <row>
152 <col width="*"> {{i18n.change}}</col>
153 <col width="14" align="right">{{change_display}}</col>
154 </row>
155 {{/change}}
156 {{/payments}}
157
158 <!-- ── Order barcode ─────────────── -->
159 <feed lines="1" />
160 <align mode="center">
161 <barcode type="code128" height="60">{{order.number}}</barcode>
162 </align>
163
164 <!-- ── Personal note ─────────────── -->
165 <feed lines="1" />
166 <align mode="center">
167 {{#store.personal_notes}}<text>{{store.personal_notes}}</text>{{/store.personal_notes}}
168 {{^store.personal_notes}}<text>{{i18n.thank_you_purchase}}</text>{{/store.personal_notes}}
169 </align>
170
171 <!-- ── Footer imprint ─────────────── -->
172 {{#store.footer_imprint}}
173 <line style="dotted" />
174 <align mode="center"><text>{{store.footer_imprint}}</text></align>
175 {{/store.footer_imprint}}
176
177 <feed lines="3" />
178 <cut />
179 </receipt>
180