• Resolved l94l

    (@l94l)


    Hello,
    Is there a way to make postcode optional? We do not need this field, but it seems it’s mandatory in WooCommerce and cannot be deactivated with this module.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support sebastianrybacki

    (@sebastianrybacki)

    Hello,

    Thank you for reaching out to us.

    You’re right – the postcode field is required by default in WooCommerce and unfortunately, it cannot be made optional via the UI in our plugin (Flexible Checkout Fields), because WooCommerce explicitly blocks editing the required status of some default fields, including the postcode.

    However, you can make the postcode field optional by adding the following code to your theme’s functions.php file. Here’s a ready-to-use version:
    https://textbin.net/nidu862guy

    This will make the postcode field optional and prevent WooCommerce from showing validation errors, even if the field is left empty or contains a non-standard value.

    Please let me know if you have any further questions.

    Kind regards,

    Plugin Support sebastianrybacki

    (@sebastianrybacki)

    Hello,

    I haven’t heard from you in a while, so I’m marking this thread as resolved. Please don’t hesitate to open a new one if you encounter any issues while using our plugin.

    Have a fantastic day,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Make postal code optional’ is closed to new replies.