Viewing 4 replies - 1 through 4 (of 4 total)
  • Siga esses passos.. n?o esque?a de colocar no function do seu tema filho…

    https://www.tychesoftwares.com/how-to-make-fields-mandatory-or-optional-on-the-woocommerce-checkout-page/

    Abra?o!

    Thread Starter rg5161

    (@rg5161)

    Tentei separado também, mesmo assim n?o ativa esses campos.

    colocou dessa maneira? pelo que vi você n?o colocou o ‘ts_require_wc_city_field’) e function ts_require_wc_city_field…

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

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

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

    Thread Starter rg5161

    (@rg5161)

    Sim, tentei das duas formas.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Campo nome e sobrenome n?o está obrigatório’ is closed to new replies.