外掛標籤
開發者團隊
② 後台搜尋「Receiptgen – Receipt & Invoice Generator」→ 直接安裝(推薦)
原文外掛簡介
Two tools, two shortcodes. Everything runs in the visitor’s browser; nothing is uploaded to your server.
Receiptgen Receipts – [rcptgn_receipt]
240+ templates in 25 categories with live search and category tabs
Live preview: merchant, logo, transaction, extra details, line items with discounts, multiple tax lines, tip, footer message
42 languages with a visitor language switcher (full list below)
Right-to-left layout for Arabic, Urdu, Persian, Hebrew, Pashto and Sindhi, in the preview and in every download
Dates, times and money follow each language’s format
All active world currencies (ISO 4217)
14 receipt styles, including Till slip, Modern, Classic, Bold, Minimal, Classic invoice, Blue medical, Red sidebar, Simple form, Modern banner and four rent-receipt grids, with brand colors
Theme: 6 paper colors and 5 receipt fonts
Download PNG, JPG, or PDF, or print
Share to Gmail (downloads the PDF, then opens an email ready for it) and WhatsApp (downloads the image, then opens WhatsApp)
No watermark. An optional footer line “Made with [name]” is off by default; enter a name under Settings > Receiptgen Receipts to turn it on
Loads only on pages that use the shortcode. Export libraries load only when a download, print, or share button is used
All receipt data stays in the visitor’s browser. Nothing is uploaded to your server
Receiptgen Invoices – [rcptgn_invoice template="taxi-invoice"]
Live paper preview that updates as you type
One-click PDF download (A4 or US Letter), PNG image download, print view, and Share (sends the PDF straight to WhatsApp, Gmail or any app on mobile)
60+ templates with fields for each job: taxi trip details, rental period, hotel stay, GST details, shipping details for commercial invoices, and more
Logo upload, 60 currencies, discount, one or two taxes (e.g. CGST + SGST), shipping, amount paid and balance due
Payment terms (Due on receipt, Net 7 to Net 60, or a custom date) with automatic due date
Invoice language switch with 30 languages. Dates and money are formatted for the chosen language, and Arabic, Urdu, Persian and Hebrew print right-to-left
60 currencies
Seven layouts (Classic, Modern, Minimal, Sidebar, Boxed, Bold, Elegant) with thumbnails
12 preset colors plus any custom color. Text switches to dark on light colors so it stays readable, optional “Paid” stamp
Remembers the user’s business details in their own browser only
Private by design: no data is sent to your server, no account needed
Assets load only on pages that use the shortcode
Receipt shortcode options
[rcptgn_receipt]
[rcptgn_receipt template=”restaurant-receipt”] Preloads a template (ID = template name in lowercase with dashes)
[rcptgn_receipt category=”food”] Opens the template browser on that category
[rcptgn_receipt lang=”ur”] Opens the tool in that language (any code from the list below)
[rcptgn_receipt style=”modern”] Opens with a receipt style: slip, modern, classic, bold or minimal
[rcptgn_templates] Template bar only. The editor opens below it after a visitor picks a template or clicks Start from Scratch
Category keys: fuel, driver, helper, rent, book, net, food, lta, ecom, gen, rch, med, sta, cab, mart, gym, hotel, news, shop, auto, homes, care, pets, pro, pay
Invoice shortcode attributes
template – which template to load (default: invoice)
currency – ISO code such as USD, PKR, INR, AED, GBP, EUR
accent – hex color, e.g. #1d6b57
style – classic, modern, minimal, sidebar, boxed, bold or elegant
paper – a4 or letter
lang – invoice language code, e.g. en, es, pt, fr, de, it, nl, tr, ar, ur, hi, id, ru, uk, pl, cs, ro, sv, el, vi, th, ms, tl, zh, ja, ko, bn, fa, he, sw
title – override the document title shown on the paper
Example:
[rcptgn_invoice template=”gst-invoice-format” currency=”INR” style=”modern”]
Adding your own invoice templates
Use the rcptgn_iv_templates filter in your theme’s functions.php:
add_filter( ‘rcptgn_iv_templates’, function ( $t ) {
$t[‘bakery-invoice’] = rcptgn_iv_tpl( array(
‘name’ => ‘Bakery invoice’,
‘items’ => array( array( ‘Birthday cake, 2 kg’, 1, 45 ) ),
) );
return $t;
} );
Receipt languages
Settings > Receiptgen Receipts: default language (or match the visitor’s browser), show or hide the switcher, and pick which languages appear in it.
Order of priority: shortcode lang attribute, then the visitor’s last choice, then the site default.
Add a language: copy receipt/assets/js/i18n/rcptgn-rc-lang-it.js to rcptgn-rc-lang-{code}.js, translate the values, and add one line to rcptgn_rc_languages() in receipt/module.php.
Language codes: en, ar, bg, bn, cs, da, de, el, es, fa, fi, fil, fr, he, hi, hr, hu, id, it, ja, ko, mr, ms, nl, no, pa, pl, ps, pt, ro, ru, sd, sk, sr, sv, sw, ta, tr, uk, ur, vi, zh.
Template names stay in English. Categories, the interface and the receipt labels are translated.
External services
This plugin does not call any external service and sends no data to any server. Receipts and invoices are built in the visitor’s browser. The Gmail and WhatsApp share buttons open a link in a new tab only when the visitor clicks them:
Gmail: https://mail.google.com/mail/ with a pre-filled subject. Privacy policy: https://policies.google.com/privacy
WhatsApp: https://wa.me/ with a pre-filled message. Privacy policy: https://www.whatsapp.com/legal/privacy-policy
The file itself is never uploaded; the visitor attaches the downloaded file. The visitor’s language choice and saved business details are kept in their own browser (localStorage). No cookies are set.
Third-party libraries (bundled)
Minified files in receipt/assets/vendor/ are unmodified official releases. Source:
html2canvas 1.4.1 (MIT): https://github.com/niklasvh/html2canvas
jsPDF 2.5.2 (MIT): https://github.com/parallax/jsPDF
JsBarcode 3.11.6 (MIT): https://github.com/lindell/JsBarcode
Fonts under SIL Open Font License: Courier Prime, IBM Plex Mono, Space Mono, VT323, Noto Naskh Arabic, Noto Sans (Devanagari, Mono Greek, Hebrew, Bengali, Gurmukhi, Tamil)
The invoice tool uses its own export engine (invoice/assets/js/export.js) and no third-party library.
