WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-conditional-shipping-fields

WooCommerce Conditional Shipping Fields

WP Plugin that streamlines the checkout by allowing to hide checkout fields based on the shipping method selected. Not all fields are needed for parcel machine etc.

★ 0stars
3release downloads
v1.0.1latest · 4mo ago

Install

Download woocommerce-conditional-shipping-fields.zip From the v1.0.1 release on GitHub, Jun 20, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/robothead-eu/woocommerce-conditional-shipping-fields/releases/download/v1.0.1/woocommerce-conditional-shipping-fields.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Streamline checkout by hiding irrelevant address fields based on the chosen shipping method. When a customer selects a parcel machine or pickup point, street address and city fields serve no purpose — this plugin removes them automatically, reducing friction and the chance of abandonment.

How it works

Configuration lives directly on each shipping method inside WooCommerce → Settings → Shipping → [your zone] → edit a method. A "Hide checkout fields" multiselect appears at the bottom of the settings form. Whatever you select there gets hidden — and made non-required — when a customer chooses that method at checkout.

Both billing and shipping fields are supported. Email is intentionally excluded from the list since it is always needed for order confirmation.

Field visibility is applied in two places:

  • Client side — fields are shown or hidden instantly as the customer changes the shipping method, with no page reload.
  • Server side — the required constraint is stripped from hidden fields before WooCommerce validates the submission, so the order can go through without them.

Requirements

  • PHP 8.1+
  • WordPress 6.0+
  • WooCommerce 7.0+

Installation

  1. Upload the woocommerce-conditional-shipping-fields folder to wp-content/plugins/.
  2. Activate the plugin in Plugins → Installed Plugins.
  3. Go to WooCommerce → Settings → Shipping, open a shipping zone, edit any method and configure the fields to hide.

If you use Composer, run composer install inside the plugin folder to generate the optimised autoloader. The plugin includes a fallback PSR-4 autoloader so Composer is not required.

Extending

You can add or remove fields from the available list using the wcsf_available_fields filter:

add_filter( 'wcsf_available_fields', function ( array $fields ): array {
    // Remove a field so it can never be hidden.
    unset( $fields['billing_phone'] );

    // Add a custom field from another plugin.
    $fields['billing_vat_number'] = __( 'Billing: VAT number' );

    return $fields;
} );

License

GPL-2.0-or-later

Releases

2 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.0.1 latest
Jun 20, 2026 4mo ago
woocommerce-conditional-shipping-fields.zip
3
Jun 20, 2026 4mo ago
woocommerce-conditional-shipping-fields.zip
0