Client work · WooCommerce plugin

    Fieldkeep: a WooCommerce checkout field editor built to stay small and safe.

    Shops often need extra questions at checkout, or changes to WooCommerce’s own fields, and the usual plugins add a lot of code and settings pages to get there. Fieldkeep started as a plugin built for one client’s shop. We rebuilt it so the checkout is defined by a configuration file instead of code, and kept everything else out.

    Type
    WordPress plugin for WooCommerce
    Status
    Live on a client’s shop (client not named)
    Our role
    Design, build and testing
    Stack
    PHP 8.1+, WordPress, WooCommerce

    What it does

    Add, change, hide and reorder checkout fields.

    Ten field types, five places
    Ten types of field, each placed in any of five areas of the checkout.
    WooCommerce’s own fields too
    Rename, require, hide or reorder the built-in fields, including different address rules for each country.
    Checked on the server
    Each field can be required or checked for a pattern, length, number or date range, a valid email, phone number or name, or a match with another field.
    Fields that appear when needed
    Show a field only when another answer or the country calls for it. The same rules run in the browser and on the server, so they can’t be skipped.
    Configuration you can version
    The whole checkout lives in one JSON file, imported and exported from the command line with WP-CLI, so changes can be reviewed and rolled back.
    Answers on the order
    Customers’ answers show on the admin order screen, and it works with WooCommerce’s newer order storage (HPOS).

    How it’s engineered

    Less to attack, and nothing gets in unchecked.

    A checkout takes customers’ details and money, so the plugin does as little as it can and checks everything it accepts.

    • A strict, versioned schema is the only way settings get in, and one error rejects the whole file, so a half-valid checkout can never go live.
    • Custom field names are namespaced, so a new field can never collide with one of WooCommerce’s own order properties.
    • A small attack surface on purpose: no endpoints of its own, no file uploads and no outbound requests.
    • The validation logic doesn’t depend on WordPress, so it’s unit tested on its own: 84 tests and 254 assertions.
    • Passes the WordPress Coding Standards checks, with end-to-end checkout tests run on WordPress Playground.

    How it’s built

    Plain WordPress, tested outside WordPress.

    Plugin
    PHP 8.1+, WordPress, WooCommerce
    Browser
    JavaScript for conditional fields
    Quality
    PHPUnit, PHPCS (WordPress Coding Standards), WordPress Playground
    Tooling
    Composer, WP-CLI

    Next: a settings screen, block checkout support, answers in emails and account pages, and CSV export.

    Need your checkout or order flow changed?

    We build WooCommerce plugins and the systems behind the shop, and keep them small, tested and safe.

    Discuss a project