Aller au contenu principal
Version: 0.4.x


The POS receipt print templates reside in the includes/views/print/tmpl-receipt.php file of both the free and the Pro plugins. Receipt templates can be customised by creating a woocommerce-pos/print/tmpl-receipt.php file in your theme directory. The code for both templates is included below.

Basic Receipt Template

Pro Receipt Template

The Pro Receipt Template allows additional information from the Stores admin such as logo, store address, opening hours and special messages.

Customising the receipt date

WooCommerce POS uses moment.js to localise the date strings. The default date format is "MMMM Do YYYY, h:mm:ss a", eg: May 31st 2015, 7:20:44 pm. Please consult the moment.js documentation for more information on customising the date format.

Order Properties

WooCommerce POS uses the json output from the WC REST API to populate the order receipt template. The WC REST API docs show an example of the standard json output. Some additional properties have been added by WooCommerce POS using the woocommerce_api_order_response filter.

cart_discount_taxThe tax portion of the cart discount
cashier.idUser ID of the Cashier
cashier.first_nameFirst name of the Cashier
cashier.last_nameLast name of the Cashier
payment_details.resultPayment gateway success or failure
payment_details.messageAny messages from the payment gateway
payment_details.redirectRedirect URL for offsite payments, eg: PayPal Standard
payment_details.method_gatewayAny gateway specific messages, eg: Amount Tendered and Change
shipping_lines[i].total_taxAdd tax amount for each shipping line
subtotal_taxThe tax portion of the subtotal