Everything about how your documents look is on WooCommerce → Invoices → Templates. Changes show up in the live preview on the right as you make them — nothing is saved until you click Save appearance. Pick any order and any document in the preview toolbar.
Templates
| Template | Style |
|---|---|
| Modern | Coloured header band, soft tinted panels and a highlighted total |
| Classic | Formal business layout, ruled tables and a serif heading |
| Minimal | Monochrome and compact — easy on the printer |
| Corporate, Elegant, Bold, Boutique, Tech Pro | See Pro Features |
| Arabic Classic, Bilingual, Thermal 80 mm Pro | Right-to-left, two-language and receipt-printer layouts |
Every document type uses the same template, so your paperwork looks like it belongs together.
Appearance settings
| Setting | What it does |
|---|---|
| Accent colour | Header, headings and the total take this colour; lighter tints are worked out for you. |
| Font | The main font. Text in another script — an Arabic product name on an English invoice — automatically uses a font that can draw it. |
| Text size | In points (6–14). |
| Paper size | A4, Letter, Legal or A5. |
| Label size | 4×6 in, 4×4 in, 100×150 mm or A6, for shipping and dispatch labels. |
| Status stamp | Stamp invoices PAID, OVERDUE or VOID. |
| Page numbers | “Page 1 / 2” at the bottom of every page. |
| Watermark | Faint text across every page, e.g. COPY. |
| Terms | Printed below the totals of invoices. Placeholders: {shop_name} {invoice_number} {due_date} {total} {pay_url}. |
| Footer | Printed at the end of every document. |
| Custom CSS | Added after the template stylesheet. Remote files and scripts are removed. |
Your logo, shop address and tax numbers are set under Settings → Shop details.
Right-to-left documents
Arabic, Hebrew, Persian, Urdu and other right-to-left languages work without an add-on:
- Text direction — Automatic follows the site language; or force Left to right or Right to left. Layouts mirror: the logo moves to the right, numbers align to the left.
- Arabic shaping — letters join correctly and words read in the right order, with the bundled XB Riyaz and DejaVu fonts.
- Digits — Western (0123456789) or Eastern Arabic (٠١٢٣٤٥٦٧٨٩).
- Hijri dates — print the Hijri date next to every date (needs the PHP intl extension).
- Phone numbers, SKUs and prices keep their left-to-right order inside right-to-left text.
The labels on documents (“Invoice number”, “Due date” …) follow the site language. Arabic, Hebrew, Persian and Urdu labels ship with the plugin, and documents can use them even when the site itself is in English (with Pro, each order’s own language is used).
Labels in two languages
Second language for labels prints every label twice, for example “Invoice number / رقم الفاتورة” — common in Saudi Arabia and the UAE. Only languages installed on the site (Settings → General → Site Language) are listed.
Font packs
Latin, Greek, Cyrillic, Hebrew, Arabic, Persian and Urdu fonts are bundled. For other scripts, click Install under Fonts for other scripts:
| Pack | Size |
|---|---|
| Chinese and Japanese | 22 MB |
| Korean | 6.6 MB |
| Thai | 0.1 MB |
| Indic scripts (Hindi, Bengali, Tamil, Telugu, Gujarati, Punjabi …) | 4.6 MB |
| Khmer | 0.3 MB |
| Burmese | 0.5 MB |
Each pack is downloaded once from GitHub (the open-source mPDF project), checked against a SHA-256 checksum and stored in your uploads folder. After installing, the pack is used automatically for text in its script and can be chosen as the main font. WP-CLI: wp ipay fonts install cjk.
Overriding templates from your theme
Every template can be copied to your theme and edited, and stays safe across plugin updates:
wp-content/plugins/invoice-payment/templates/ipay-documents/invoice.php
→ wp-content/themes/your-theme/woocommerce/ipay-documents/invoice.php
| File | Purpose |
|---|---|
ipay-documents/document.php | The HTML page wrapping every document |
ipay-documents/invoice.php, packing-slip.php, delivery-note.php | The order of sections |
ipay-documents/shipping-label.php, dispatch-label.php | Label layouts |
ipay-documents/partials/*.php | Sections: header, parties, items, summary, tax-summary, notes, signature, footer |
ipay-documents/styles/*.css | Stylesheets: base.css plus one per template |
Templates carry an @version header; Site Health tells you when a theme override is older than the plugin’s version. Documents are rendered to PDF by mPDF, which supports CSS 2.1 with tables for layout — avoid flexbox and grid.
Next: Pay by Invoice & Payments.