jennineh
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Cannot Change Postal/ZIP* label textGood Morning,
I tried your codes and it works! Thank you.
The only issue is on the ‘Addresses’ section on the customer’s account dashboard. where they can edit their billing and shipping addresses. The default ‘Postal/ZIP*’ is still displayed here, how can I change that so that both fields on the checkout page and in the customer’s account are synced?
My idea is to use the shipping code as the source to create shipping zones and map the customer’s shipping methods. My country does not have a postal code system, so now i’m trying to create a system that will work efficiently for my store.
Forum: Plugins
In reply to: [WooCommerce] Cannot Change Postal/ZIP* label text:-). Thank you.
Forum: Plugins
In reply to: [WooCommerce] Cannot Change Postal/ZIP* label textHi, Thank you. It works well actually! :-).
I have another questions, if you are able to answer. I changed ‘Postal/ZIP’ to ‘Shipping Code’ and I want to make the field a drop-down so that customers can select which Shipping Code they fall under, these are shipping codes that I made up for my Stores shipping because my country does not have any for me to create shipping zones with. this is the code I used to used to make the ‘City’ field into a drop-down:
add_filter( 'wc_city_select_cities', 'my_cities' ); /** * Replace XX with the country code. Instead of YYY, ZZZ use actual state codes. */ function my_cities( $cities ) { $cities['BZ'] = array( 'CZ' => array( 'Corozal Town', 'Calcutta Village', 'Ranchito', ), 'CY' => array( 'San Ignacio', 'Santa Elena', 'Benque Viejo', ), 'BEL' => array( 'Belize City', 'Ladyville', 'Sandhill', 'Hattieville', ), 'TL' => array( 'Placencia', 'Independence', 'Punta Gorda', ), 'OW' => array( 'Orange Walk Town', ) ); return $cities; }Do you know how I can make the postal code field a drop-down as well?