Go Back to Parent Doc

Templates, Languages & RTL

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

TemplateStyle
ModernColoured header band, soft tinted panels and a highlighted total
ClassicFormal business layout, ruled tables and a serif heading
MinimalMonochrome and compact — easy on the printer
Corporate, Elegant, Bold, Boutique, Tech ProSee Pro Features
Arabic Classic, Bilingual, Thermal 80 mm ProRight-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

SettingWhat it does
Accent colourHeader, headings and the total take this colour; lighter tints are worked out for you.
FontThe main font. Text in another script — an Arabic product name on an English invoice — automatically uses a font that can draw it.
Text sizeIn points (6–14).
Paper sizeA4, Letter, Legal or A5.
Label size4×6 in, 4×4 in, 100×150 mm or A6, for shipping and dispatch labels.
Status stampStamp invoices PAID, OVERDUE or VOID.
Page numbers“Page 1 / 2” at the bottom of every page.
WatermarkFaint text across every page, e.g. COPY.
TermsPrinted below the totals of invoices. Placeholders: {shop_name} {invoice_number} {due_date} {total} {pay_url}.
FooterPrinted at the end of every document.
Custom CSSAdded 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:

PackSize
Chinese and Japanese22 MB
Korean6.6 MB
Thai0.1 MB
Indic scripts (Hindi, Bengali, Tamil, Telugu, Gujarati, Punjabi …)4.6 MB
Khmer0.3 MB
Burmese0.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
FilePurpose
ipay-documents/document.phpThe HTML page wrapping every document
ipay-documents/invoice.php, packing-slip.php, delivery-note.phpThe order of sections
ipay-documents/shipping-label.php, dispatch-label.phpLabel layouts
ipay-documents/partials/*.phpSections: header, parties, items, summary, tax-summary, notes, signature, footer
ipay-documents/styles/*.cssStylesheets: 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.

Shopping Cart
  • Your cart is empty.