Hello,
the country is Algeria, it indeed has zip code areas but they aren’t really used among people in general, as where i tried to hide the zip codes:
1 – from the theme editor (the checkout zip code fields were locked, as shown in the attached image) i could edit some fields there, but not the address one
https://www.dropbox.com/scl/fi/zyrrwl3p0hrvdvemfdrb9/Screen-Shot-2024-09-22-at-9.04.06-PM.png?rlkey=89m0s0noewixipbehu2f4ehzl&st=2ez6a7f7&dl=0
(the img block is smh not working so i attach properly)
2- the php code lines added in functions.php :
// Disable zip/postcode field add_filter( ‘woocommerce_checkout_fields’ , ‘QuadLayers_remove_billing_postcode_checkout’ ); function QuadLayers_remove_billing_postcode_checkout( $fields ) { unset($fields[‘billing’][‘billing_postcode’]); return $fields; }
and also this:
add_filter( ‘woocommerce_blocks_checkout_update_order_meta’, function( $fields ) {
unset( $fields[‘billing_postcode’] ); // Remove billing postcode
unset( $fields[‘shipping_postcode’] ); // Remove shipping postcode
return $fields;
}, 9999 );
i’m developing the website locally, i don’t know if this info has any relevance
thank you !