• Hi,
    Am the programer of this site and i want to make state filed required.
    I try this code:


    add_filter( ‘woocommerce_billing_fields’, ‘ts_require_wc_company_field’);
    function ts_require_wc_company_field( $fields ) {
    $fields[‘billing_state’][‘required’] = true;
    return $fields;
    }

    But it doesn work,
    Can you help me how to do it?

    The customer has Flexible Checkout Fields PRO 3.5.4


    Thanks in advance

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

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

    (@rzepsen)

    Hello @ageroth

    I am sorry, but our plugin does not have the function allows you to make state field required.

    Your scenario is a custom modification for a specific case and our technical support does not cover it.

    Please note that this option is not controlled by our plugin, for a reason

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    I am marking this topic as resolved as we have not received any new replies. Please let us know if you need our help again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘state required’ is closed to new replies.