We'll create fresh WordPress site with GazChap's WooCommerce Purchase Order Payment Gateway installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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:
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.
WooCommerce, at least version 3.0.
Once installed and activated, you need to enable the Payment Gateway in WooCommerce > Settings > Checkout (or via the plugin’s Settings link on the WordPress Plugins page) – you can then set the various options for the plugin at the same time.
Licensed under the GNU General Public License v2.0