Woocommerce Postcode dropdown list based on selected State

fsdf

Member
Oct 5, 2019
50
28
18
I want to return Woocommerce postcodes as a dropdown list like in this Stackoverflow thread Change postcode shipping field to a dropdown in Woocommerce (which works well but is returned on all countries & states); I want to add the condition that it should be returned only based on the selected State by the user. For instance if someone selects State1 they get a certain dropdown list of Postcodes defined in that state only, and if they select another state2 they get a dropdown of another list of postcodes in that state only as well, and the rest of undefined States can remain to default function without dropdown.

Any help will be appreciated.
 

Forum statistics

Threads
69,502
Messages
910,085
Members
240,018
Latest member
Khubaibopm

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu