• Resolved calliewallie

    (@calliewallie)


    For some strange reason the ‘State/County’ field at checkout becomes optional if you choose the United Arab Emirates or United Kingdom as your billing/ship-to address. I need the ‘State/County’ field to be required like it is for all other countries. Can anyone help me fix this?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    Hi @calliewallie,

    The documentation here covers how to customize checkout fields using actions and filters – https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/.

    There’s an example here that shows how to go about making the phone number field optional -https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/#section-8.

    You’ll want to put in a check for the countries you’ve mentions and then do the inverse of what is happening in that code with the “State/Country” field.

    If you’re not comfortable working through this yourself, I’d recommended getting your developer to help you with it. If you don’t have a go-to developer, we highly recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/.

    Cheers.

    Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    Hi @calliewallie,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘‘State/County’ optional for UAE and UK’ is closed to new replies.