ThemeHigh
  • Plugins
  • Documentation
  • Support
  • Partners
  • Login
  • Getting Started
    • Overview...
    • Add/Edit Custom Fields
    • Set Display Rules
    • Set Repeat Rules
    • Price Fields & Types
    • User Meta Fields
    • Time Picker Settings
    • Why Your Checkout Fields Aren’...
    • Date Picker Settings
    • Display Custom Fields...
  • Advanced Settings
    • Include New Fields in Address Format?
    • Enable Address Autofill
    • Configure Locale Override Settings
    • Add Custom Fields to CSV Export
    • Display Custom Fields In PDF Invoices & Packing Slips
    • Zapier Support
    • Display Country & State Fields based on Conditional Rules
    • WPML Compatibility
    • Where do the Custom Fields get Saved or Displayed?
    • Backup & Import Settings
    • Enable Inline Validation...
    • WPML String Translations...
    • Custom Fields in WooCommerce Orders
    • Add a New Custom Validation Rule
    • Add a New Confirm Field Validator
    • Import/Export the Checkout Fields and Sections
  • For Developers
    • Hooks & References...
    • Display Rules: Use cases and mor...
    • Repeat Rules: More use cases and...
    • Based on Checkout Fields: Use ca...
    • Override HTML Content: Examples...
    • Compatibility with “WooCom...
  • Compatible Plugin & Themes
    • Plugins & Themes...
  • Frequently Asked Questions
    • Frequently Asked Questions...
  • How
    • How To Display Fields In Order D...
    • How To Customise The Shipping Se...
    • How To Add Custom Fields In The ...
    • How to Add Custom Price Fields o...
    • How To Add A New Section To The ...
    • How To Display Custom Fields In ...
    • How to Show/Hide Fields Based On...
    • How To Set Repeat Rules On The C...

Documentation/Checkout Field Editor for WooCommerce/How to Show/Hide Fields Based On Shipping Methods on the Checkout Page?

How to Show/Hide Fields Based On Shipping Methods on the Checkout Page?

Last updated on December 6, 2022

Have you ever thought of setting up the checkout field based on your preference? Setting up the checkout field centred on your terms makes it more dynamic and flexible.
Most often, we prefer a minimal approach when displaying WooCommerce’s predefined checkout fields. In particular, the billing addresses may not be displayed in the checkout option of the WooCommerce store. Similarly, when specific shipping options are in the cart, you might occasionally want to hide that shipping option from your consumers.
As a vendor, for flat rate shipping, it is essential to get the proper address of the customer during delivery. However, when the customer prefers a local pick-up option, gathering the customer’s address for delivery is not mandatory.

There are scenarios where you may require specific fields to be masked in the checkout page selected by the user’s preference. Unfortunately, Woocommerce does not support the conditional rule on the checkout page. So we have come up with a solution where you can utilise our plugin, Checkout Field Editor for WooCommerce, and deal with the situation. The plugin Shows/Hides fields based on Shipping Methods on the Checkout Page.

Let us look at the various steps that help display the Shipping methods on the checkout page.

  1. Navigate to Dashboard > Checkout Form
  2. Proceed to the Advanced Settings tab.
  3. Move to the Other Settings section at the bottom.
  4. Tick the box Enable conditional rules based on Payment & Shipping methods.
  5. Save changes
  6. Proceed to find the value of the shipping method.Once the conditional criteria have been specified in the Advanced settings, the value for the shipping method must be selected.Follow the below steps to find the value of the shipping method.

    To find the value of the Shipping Method,

    • Go to the Shop page > Add to Cart > Checkout.
    • Right-click on Shipping on the Checkout Page, just below Your Order.
    • Right-click on Shipping on the Checkout Page, just below Your Order.
    • Click Inspect.
    • You will be directed to an additional window, Element.
    • The shipping method value in the present instance is flat_rate:5, as displayed below.
  7. Provide the shipping method value to the conditional rule based on the shipping method. Use the value you just obtained for the shipping method to decide whether to show or hide the fields on the checkout page.
    • Direct to WooCommerce > Checkout Form > Checkout Fields
    • Click the Edit button, if the fields are already created. (Click Add Field if new fields are to be added).
    • Proceed to the Display Rules tab.
    • Select Shipping Method from the drop-down list.
    • Select the operator as “value equals to”.
    • In the box next to the operator, provide the shipping method value as flat_rate:5.
    • Save & Close

    The created field for showing the shipping method is Landmark. Therefore, the checkout page will display as shown below.

Final Thoughts

In this article, we have discussed how you can show or hide checkout fields according to your requirement based on the Shipping Methods. You can follow the steps to find out the payment method value first. After that, you can provide the value in displaying the checkout fields on the checkout page. After reading this article, we hope you can show or hide checkout fields on your store without difficulties.

Get the plugin

On this page

  • To find the value of the Shipping Method,
  • Final Thoughts

What's new

  • Added a custom file upload button property for the File upload field type.
  • Alert on selecting display position of sections as before/after terms and conditions.
  • Added Woocommerce 6.8.2 compatibility.

Highlights

  • 24 custom field types with file upload.
  • Create additional sections.
  • Display sections and Fields Conditionally.
  • Display custom fields at 14 different positions.
  • Create confirm field validators.
  • Price fields with a set of price types.
  • Repeat fields and sections based on specific conditions.
  • WPML Compatibility.
  • Import & Export fields and sections.

This article posted in Checkout Field Editor for WooCommerce, How, Pro Documentation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

ThemeHigh

We develop innovative WordPress plugins and themes for e-commerce and other WordPress websites.

Resources
  • Documentation
  • Support
  • Blog
  • Bestsellers
  • Affiliates
  • Partners
Policy Information
  • Terms & Conditions
  • Privacy Policy
  • Support Policy
  • Refunds Policy
  • Licenses
Security
Payment Options

© 2026 ThemeHigh. All rights reserved.

Terms and conditions, features, support, pricing, and service options subject to change without notice.