The postcode field was hidden for Nigeria in 3.5, you can see the reasoning given here: https://github.com/woocommerce/woocommerce/issues/21055
While the Nigeria Postal Service (http://nipost.gov.ng/) introduced
Postal Codes a few years ago, they aren’t being used by hardly anyone.Nobody knows their postal codes as the implementation is very
convoluted and nothing was done to sensitize the public or encourage
their use. You won’t find them on any addresses and they aren’t
required for finding a building/location or for delivering parcels.
If this is incorrect, you should file an issue.
To change this behaviour on one site, though, you can use filter woocommerce_get_country_locale
, like so:
add_filter(
'woocommerce_get_country_locale',
function( $locales ) {
$locales['NG']['postcode']['hidden'] = false;
return $locales;
}
);
Related Posts:
- how to use wc_create_order with subscription product
- Add custom variable to cart content [closed]
- WooCommerce changes lost password reset link
- Woocommerce My Account Endpoint – how to get ID parameter from URL?
- Default woocommerce placeholder image
- WooCommerce: Add New Report Tab
- How to add Woocomrce cart page shipping calculator to my country state list
- Custom Woocommerce image size [closed]
- Migrate WooCommerce Orders [closed]
- Button to update order status Woocommerce with WC Marketplace
- WooCommerce Subscriptions: Show monthly Price for annual Product
- How to add multiple product gallery images from front-end
- Hide income in Woocomercer [closed]
- WooCommerce single products images doesn’t zoom on hover and doesn’t change clicking on gallery
- Disabling the free shipping method when the cart has product/s which assigned a certain shipping class [closed]
- woocommerce_email_subject_customer_completed_order
- is_shop, is_home, is_front_page doesn’t work for woocommerce
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- How to show loading spinner after click on add to cart button [closed]
- Woocommerce – Show random product thumbnail from specific product category
- How to add a greeting message upon logging into WordPress for certain user role
- Modify some CSS with functions if (function_exists
- Limit total quantity of products in WooCommerce group product
- Variation name in $product->get_name()
- WordPress keeps moving my widgets to other widget areas
- Woo-commerce Checkout Summarized in Pop-up Card Entry Only
- Display Message if woocommerce coupon is not applicable to some items in the cart
- How do I add an extra field to comment form above the submit button?
- woocommerce email template detect email recipient
- WooCommerce – buying as well as selling
- How do I hide ‘out of stock’ products in the admin ‘product’ page?
- how to remove or disable woocommerce order review in checkout page?
- WordPress and WooCommerce – How many products are too many? [closed]
- Add custom field to Woocommerce add new attribute / edit page
- woocommerce axios react
- How to get woocommerce selected variation from order object
- JWT on Woocommerce cannot work with “Customer” role user
- Woocommerce – Add HTML around Product description [closed]
- relocate woocommerce notices/messages on Cart page
- Woocommerce emails from gmail not being sent
- lost password link not working for my site
- How to give each category name its own ACF background color?
- WooCommerce 4: Gallery size is too large in mobile
- Woocommerce cart is not clear after logout
- WooCommerce event works in jQuery but not in JavaScript
- Filter default_content only for products
- Remove Visual Editor and P tags from WooCommerce Taxonomy Descriptions [closed]
- Woocommerce Remove Tax by Product Type
- Append woocommerce category to product title globally? [closed]
- get_posts $args won’t accept array as one of the criteria?
- Custom fields values not being created
- Adding additional text under the price via product page
- Display WooCommerce product category on shop page (on every product)
- Add custom parameters to Woocommerce add to cart link
- Multisite login – registration is duplicated
- WooCommerce variable product can not add to cart using ajax after updating latest version of WooCommerce
- Create a Search Form that only Searches with WooCommerce Sale Products
- Update WooCommerce Sale Price & Date Based On Attribute Value
- Add quantity of variations together and show it to parent quantity field Woocommerce
- Woocommerce: How to change the attribute values per product
- add_post_meta add latest data from meta_value array
- WordPress | Woocommerce | use “category display type” in if statement
- Order again Woocommerce inside View Order
- Photo cover in WooCommerce
- How to vary WooCommerce product prices based on order dates
- How to save one API response to WooCommerce order meta data
- WooCommerce and ACF: How to Redirect Upon Add to Cart – Partially Working Example
- Woocommerce: Search by custom attribute
- Can’t update WooCommerce payment method title
- Set Post Thumbnail to external URL
- Custom theme woocommerce product detail page template not working
- Increase the download speed of a large number of variations in WooCommerce
- remove add to cart for free (0 $) product woocommerce
- merge tabs in woocommerce
- WooCommerce related products load random posts per page
- WooCommerce: Adding a setup fee to certain products
- Removing shipping for one product with coupon
- Awesome Support Custom Field for show Woocommerce orders
- How to make a custom redirect in WooCommerce?
- Firstname and lastname greyout or hidden Billing details at next checkout like username is hidden [closed]
- Site with WooCommerce section moved to HTTPS – all pages except home and main store are 404s
- Multiple quantities with options
- how to add custom reviews button in woocommerce order complete generated mail
- Adding more than one item to Woocommerce cart
- Not all strings are translated
- Woocommerce – get product in category with specific attribute
- Woocommerce make appear when items added to cart
- How to add a menu page for options in wordpress for user that has the role of vendor?
- Testimonials/Reviews for Products
- add custom menu in woocommerce dashboard [closed]
- Override function
- Updating order meta to have a meta entry from an item in the order
- Send data to external websites when there is an update or create a post
- Sort by price when price is set in multiple keys
- Add a custom code with custom link after add to cart for every product
- WooCommerce product permalink based on product’s current category
- Disable duplicate WC product category URLs
- how should i get products based on tags in woocommerce
- Add custom text to product category page
- Woocommerce permalink URL change in DB