I have removed the country field and got bugs.
-
I have removed the country field from the checkout page in woocommerce by adding this code.
/**
- Remove the country checkout field */
function njengah_override_checkout_fields( $fields ) {
unset($fields[‘billing’][‘billing_country’]);
return $fields;
}
add_filter(‘woocommerce_checkout_fields’,’njengah_override_checkout_fields’);
Then I tested to see if I could checkout without any problems, but after I clicked to order in checkout, the screen froze and I could not reach the Thank You page.
I really don’t need country section.
How can I fix this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘I have removed the country field and got bugs.’ is closed to new replies.