Simple Custom Fields for WooCommerce Blocks Checkout FAQ

Support

1) How to request technical support?

If the issue you need technical support with is not covered on this page, click the link next to the license key, on the plugin settings, and fill out the ticket with your request.

2) Where do I report security vulnerabilities found in this plugin?

You can report any security bugs found in the source code of this plugin through the Patchstack Vulnerability Disclosure Program.

The Patchstack team will assist you with verification, CVE assignment and take care of notifying us.

Licensing

1) How to transfer the license to another domain?

You should ask for the domain change in your customer area, next to the original order details.

After you get the reply from us stating that the license key is free, you should go to the old website settings, remove the key and save. Then go to the new website settings, insert the same key and save. If you cloned the website, the license key is on the database, and you need to remove it, save, insert it again and save again.

General operation

1) Getting started guide

Install the plugin and go to WooCommerce > Checkout Blocks Custom Fields. Insert the provided license code to activate it.

Click “Add field” on the desired section, fill in the field label, slug (used to store the field on the order and user meta), and set other field options. Save it.

Your new field is now showing up on your block-based WooCommerce checkout.

You can edit or delete any field at any time. The previous order values will not be erased from the database, but you’ll not see them again on the order edit screen. That’s a limitation of the current experimental API.

2) How are the fields stored in the database?

As of today, the fields are stored on orders and users meta on the _additional_fields, _additional_billing_fields and _additional_shipping_fields meta keys on a serialized array.

Each field is stored with the swcbcf/field-slug key on each of the mentioned arrays.

Unfortunately, the experimental API still doesn’t allow to store each field on its own meta record, but’s that’s something being discussed on the WooCommerce GitHub repository and we’re actively participating for it to become possible. UPDATE: This will become a reality on the next release.

3) Is it possible to add/remove/reorder WooCommerce Blocks core checkout fields?

No, no more than what the block editor allows you to. The experimental API only allows us to add new custom input, select and checkbox fields at the end on each section (contact information, address and additional information).

The API in evolving every day, and the next version will allow changing the fields order.

4) What’s the “Pattern” option for?

That’s a way to limit the pattern/format of the inserted value on a text input by using regular expressions.

Here are some examples that might be useful:

  • Only numbers: ^[0-9]+$
  • Email address: [a-z0-9._%+\-]+@[a-z0-9.\-]+\.[a-z]{2,}$
  • URL (starts with http:// or https://): https?://.+
  • Eight or more characters: .{8,}