This plugin adds a new offline payment gateway to WooCommerce that allows your customers to request an invoice with a Purchase Order.
There are a number of options:
- You can set the plugin to ask the customer for a Purchase Order Number, and dictate whether this is mandatory or can be left blank.
- You can set the plugin to ask the customer for a postal address for the invoice.
- You can set the plugin to pre-fill this address with the customer's existing billing address (if they are logged in, and have one set in WooCommerce)
- You can set the plugin to add supplied Purchase Order information to order notification emails
- You can set the plugin to add supplied Purchase Order information to order objects in the WooCommerce REST API
When an order is received, the plugin will add all of the submitted information on to the WooCommerce View Order screen.
As of version 2.0, you can also add Purchase Order information to orders created through the WooCommerce Admin screens, and edit Purchase Order information saved against an existing order.
As of version 3.0, you can also add Purchase Order information to orders in the WooCommerce REST API. There are two settings to control this behaviour, allowing you to choose to add just the PO Number as well as the address if needed.
The two fields in the Order objects are
gazchap_purchase_order_number
and
gazchap_purchase_order_address
respectively.
The number is just a string, or
null
if no number was provided (or the payment method was not the Purchase Order gateway)
The address is an array of strings:
contact
,
company
,
address1
,
address2
,
city
,
county
,
postcode
. These fields can be null if not given.
Note: This plugin does not (currently, at least) generate the actual invoices - it is only used to collect the Purchase Order information.
Install via the WordPress Plugin Directory, or download a release from this repository and install as you would a normal WordPress plugin.