PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.21
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.21
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-rtl.xml

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

187 lines 6.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!--
2 Simple Thermal Receipt 80mm (RTL) — Right-to-left counterpart to
3 thermal-simple-80mm.xml. Mirrored for Arabic, Hebrew, Persian and Urdu.
4
5 ESC/POS is character-cell based with no true bidi: what's mirrored here
6 is column alignment and label/amount order. The label column is on the
7 right (align="right") and the amount/value column is on the left
8 (align="left"), so the receipt reads naturally for an RTL audience when
9 the printer renders Arabic glyphs right-to-left.
10
11 Printer requirement: this template prints Arabic, Hebrew, Persian or
12 Urdu glyphs only if your thermal printer supports an Arabic codepage
13 (CP864 or Windows-1256). Most modern thermal printers from Epson, Star,
14 Bixolon and Xprinter support this — check your printer's manual before
15 ordering. Codepage selection happens printer-side and is not switched
16 from PHP.
17
18 Layout uses width="*" for the flexible column so the same template
19 renders correctly on both 42- and 48-CPL 80mm printers; do not replace
20 these star columns with hard-coded widths.
21 -->
22 <receipt paper-width="48">
23
24 <!-- ── Logo + store identity ─────────────── -->
25 {{#store.logo}}
26 <align mode="center"><image src="{{store.logo}}" width="200" /></align>
27 {{/store.logo}}
28 <align mode="center">
29 <bold><size width="2" height="2"><text>{{store.name}}</text></size></bold>
30 {{#store.address_lines}}
31 <text>{{.}}</text>
32 {{/store.address_lines}}
33 {{#store.phone}}<text>Phone: {{store.phone}}</text>{{/store.phone}}
34 {{#store.email}}<text>Email: {{store.email}}</text>{{/store.email}}
35 {{#store.tax_ids}}
36 <text>{{value}}{{#label}} :{{label}}{{/label}}</text>
37 {{/store.tax_ids}}
38 </align>
39 <line />
40
41 <!-- ── Order info (label on the right, value on the left) ─────────────── -->
42 <row>
43 <col width="*">#{{order.number}}</col>
44 <col width="12" align="right">:{{i18n.order}}</col>
45 </row>
46 <row>
47 <col width="*">{{order.created.datetime}}</col>
48 <col width="12" align="right">:{{i18n.date}}</col>
49 </row>
50 {{#cashier.name}}
51 <row>
52 <col width="*">{{cashier.name}}</col>
53 <col width="12" align="right">:{{i18n.cashier}}</col>
54 </row>
55 {{/cashier.name}}
56 {{#customer.name}}
57 <row>
58 <col width="*">{{customer.name}}</col>
59 <col width="12" align="right">:{{i18n.customer}}</col>
60 </row>
61 {{/customer.name}}
62
63 <!-- ── Items (amount on the left, qty x unit price on the right) ─────────────── -->
64 <line />
65 {{#lines}}
66 <bold><text>{{name}}</text></bold>
67 {{#sku}}<text>{{sku}} :SKU </text>{{/sku}}
68 {{#line_savings}}
69 <text>{{regular_price_display}} :{{i18n.regular_price}} </text>
70 {{^savings_in_discounts}}
71 <row>
72 <col width="14">-{{line_savings_display}}</col>
73 <col width="*" align="right">{{i18n.savings}} </col>
74 </row>
75 {{/savings_in_discounts}}
76 {{/line_savings}}
77 {{#discounts}}
78 <row>
79 <col width="12">-{{discounts_display}}</col>
80 <col width="*" align="right">{{unit_subtotal_display}} @ </col>
81 </row>
82 {{/discounts}}
83 <row>
84 <col width="12">{{line_total_display}}</col>
85 <col width="*" align="right">{{qty}} x {{unit_price_display}} </col>
86 </row>
87 {{/lines}}
88
89 <!-- ── Fees / Shipping / Order-level discounts ─────────────── -->
90 {{#fees}}
91 <row>
92 <col width="14">{{total_display}}</col>
93 <col width="*" align="right">{{label}}</col>
94 </row>
95 {{/fees}}
96 {{#shipping}}
97 <row>
98 <col width="14">{{total_display}}</col>
99 <col width="*" align="right">{{label}}</col>
100 </row>
101 {{/shipping}}
102 {{#discounts}}
103 <row>
104 <col width="14">-{{total_display}}</col>
105 <col width="*" align="right">{{i18n.discount}}{{#label}}: {{label}}{{/label}}</col>
106 </row>
107 {{/discounts}}
108
109 <!-- ── Totals ─────────────── -->
110 <line />
111 <row>
112 <col width="14">{{totals.subtotal_display}}</col>
113 <col width="*" align="right">{{i18n.subtotal}}</col>
114 </row>
115 {{#tax_summary}}
116 <row>
117 <col width="14">{{tax_amount_display}}</col>
118 <col width="*" align="right">{{#tax.display_excl}}{{label}}{{#rate}} ({{rate}}%){{/rate}}{{/tax.display_excl}}{{#tax.display_incl}}{{i18n.included_tax}}: {{label}}{{#rate}} ({{rate}}%){{/rate}}{{/tax.display_incl}}</col>
119 </row>
120 {{/tax_summary}}
121 <line style="double" />
122 <row>
123 <col width="14"><bold>{{totals.total_incl_display}}</bold></col>
124 <col width="*" align="right"><bold>{{i18n.total}}</bold></col>
125 </row>
126 {{#totals.total_saved_incl}}
127 <row>
128 <col width="14">{{totals.total_saved_incl_display}}</col>
129 <col width="*" align="right">{{i18n.total_saved}}</col>
130 </row>
131 {{/totals.total_saved_incl}}
132 <line style="double" />
133
134 <!-- ── Customer note ─────────────── -->
135 {{#order.customer_note}}
136 <line style="dashed" />
137 <bold><text>{{i18n.customer_note}}</text></bold>
138 <text>{{order.customer_note}}</text>
139 {{/order.customer_note}}
140
141 <!-- ── Payments ─────────────── -->
142 {{#payments.0}}
143 <line style="dashed" />
144 <bold><text>{{i18n.paid}}</text></bold>
145 {{/payments.0}}
146 {{#payments}}
147 <row>
148 <col width="14">{{amount_display}}</col>
149 <col width="*" align="right">{{method_title}}</col>
150 </row>
151 {{#tendered}}
152 <row>
153 <col width="14">{{tendered_display}}</col>
154 <col width="*" align="right">{{i18n.tendered}} </col>
155 </row>
156 {{/tendered}}
157 {{#change}}
158 <row>
159 <col width="14">{{change_display}}</col>
160 <col width="*" align="right">{{i18n.change}} </col>
161 </row>
162 {{/change}}
163 {{/payments}}
164
165 <!-- ── Order barcode ─────────────── -->
166 <feed lines="1" />
167 <align mode="center">
168 <barcode type="code128" height="60">{{order.number}}</barcode>
169 </align>
170
171 <!-- ── Personal note ─────────────── -->
172 <feed lines="1" />
173 <align mode="center">
174 {{#store.personal_notes}}<text>{{store.personal_notes}}</text>{{/store.personal_notes}}
175 {{^store.personal_notes}}<text>{{i18n.thank_you_purchase}}</text>{{/store.personal_notes}}
176 </align>
177
178 <!-- ── Footer imprint ─────────────── -->
179 {{#store.footer_imprint}}
180 <line style="dotted" />
181 <align mode="center"><text>{{store.footer_imprint}}</text></align>
182 {{/store.footer_imprint}}
183
184 <feed lines="3" />
185 <cut />
186 </receipt>
187