Nets Easy – Extra checkout fields
With Easy you have an embedded checkout solution that handles both payment methods and customer address fields. In some cases you might need to collect more information than the regular customer address data.
Default checkout fields
The
Nets Easy for WooCommerce plugin retrieve and populate following address data in the checkout form:
During checkout updates
When customer data is updated from Nets to WooCommerce.
- Billing Postcode
- Billing Country
- Shipping Postcode
- Shipping Country
During checkout process
Right before the checkout form is submitted and the order is created in WooCommerce.
- Billing First name
- Billing Last name
- Billing Company (if B2B purchase)
- Billing Postcode
- Billing City
- Billing Country
- Phone
- Email address
- Shipping First name
- Shipping Last name
- Shipping Company (if B2B purchase)
- Shipping Postcode
- Shipping City
- Shipping Country
Custom checkout fields
The plugin also handles extra checkout fields that has been added via the filter
woocommerce_checkout_fields
or via a hook triggered in the
Nets Easy template page together with the
woocommerce_form_field
function. Tese fields will then be displayed below the order notes textarea field.
An example
If you add the following code as a plugin or in your themes functions.php file:
Then the field will be displayed like this:
In this case we made the field a
required field. By doing that the purchase will not be finalized when pressing the
Place order button until data has been entered into the
Custom info field.
Limitations
Custom checkout fields that have been added to the regular WooCommerce checkout form via any of the
hooks in the terms template will
not be handled/processed by the Nets Easy plugin.
Compatibility with checkout field plugins
If you don’t want to add extra checkout fields via custom code there are several plugins that solves this. Nets Easy for WooCommerce has been tested with the following checkout field plugins: