Campo Telefone (billing_phone) n?o aparece no checkout
-
O campo Telefone n?o aparece no checkout.
Eu removi a maioria dos campos do checkout com o seguinte código no arquivo functions.php do tema:
add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );
function custom_override_checkout_fields( $fields ) {
unset($fields[‘billing’][‘billing_company’]);
unset($fields[‘billing’][‘billing_address_1’]);
unset($fields[‘billing’][‘billing_address_2’]);
unset($fields[‘billing’][‘billing_number’]);
unset($fields[‘billing’][‘billing_city’]);
unset($fields[‘billing’][‘billing_postcode’]);
unset($fields[‘billing’][‘billing_country’]);
unset($fields[‘billing’][‘billing_state’]);
unset($fields[‘billing’][‘billing_city’]);
unset($fields[‘billing’][‘billing_last_name’]);
unset($fields[‘billing’][‘billing_persontype’]);
unset($fields[‘billing’][‘billing_neighborhood’]);
unset($fields[‘billing’][‘billing_cnpj’]);
unset($fields[‘billing’][‘billing_cellphone’]);
return $fields;
}Porém mesmo sem o código acima o campo “Telefone” n?o aparece.
Alguém pode me ajudar? Pois sem o telefone o PagSeguro dá erro.The page I need help with: [log in to see the link]
- The topic ‘Campo Telefone (billing_phone) n?o aparece no checkout’ is closed to new replies.