The email field remains required for visitors who are not registered on the site
-
I tried many times to solve the problem using WooCommerce Checkout Manager plugin
I used PHP codes without solving the problem
I will attach pictures and codes for you
css :
.woocommerce-billing-fields #billing_email_field {
display: none;
}
php
// Remove the Email Address field from WooCommerce checkout
add_filter(‘woocommerce_checkout_fields’, ‘hide_email_address_field’);
function hide_email_address_field($fields) {
unset($fields[‘billing’][‘billing_email’]);
return $fields;
}
I cleaned the cache
I have not installed many plugins on my site to disable them.
Attachments:
You must be
logged in to view attached files.
I disabled the WooCommerce Checkout Manager plugin
the problem was solved, but is there another recommendation to modify and add fields?
I downloaded an add-on that you recommend on your site”Checkout Field Editor for WooCommerce”, but a new problem has appeared. It asks me to enter the address, and I have already entered it.
Hello,
WoodMart currently supports Checkout Fields manager feature, which helping you enable / disable fields or remove Required fields.
Please follow this guide:
https://xtemos.com/docs-topic/fields-manager/
Best Regards