respected sir i have no need to (Postcode / zip) field in checkout Page, and also no need to Required Email Field, Sir Xstore having no option to edit or delete to postcode field in checkout page
so please help us
thanks
This topic has 3 replies, 2 voices, and was last updated 7 months, 2 weeks ago ago by theimportedproductswebsite
respected sir i have no need to (Postcode / zip) field in checkout Page, and also no need to Required Email Field, Sir Xstore having no option to edit or delete to postcode field in checkout page
so please help us
thanks
Hi @theimportedproductswebsite,
Please try adding the following under functions.php file loacates in your child theme:
add_filter( 'woocommerce_checkout_fields', 'bbloomer_simplify_checkout_virtual' );
function bbloomer_simplify_checkout_virtual( $fields ) {
unset($fields['billing']['billing_postcode']);
return $fields;
}
add_filter('woocommerce_billing_fields', 'custom_billing_fields', 1000, 1);
function custom_billing_fields( $fields ) {
$fields['billing_email']['required'] = false;
return $fields;
}
Hope it helps!
Thanks for the support! My topic “I want to remove some field in checkout but Xstore having no option to delete or edit field Postcode” has been successfully resolved.
The issue related to '‘I want to remove some field in checkout but Xstore having no option to delete or edit field Postcode’' has been successfully resolved, and the topic is now closed for further responses