Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Yes this is possible. You can redirect in PHP with wp_redirect() as long as it is done before anything is output for the current request. You can redirect from JavaScript any time with window.location.assign(). The key is having a list of appropriate zip codes to check user input against. The details would depend on what form this data is in and how you intend to maintain the list.

    I don’t know if there is any plugin that will do this, but the code required isn’t that complex. Developing a custom solution wouldn’t be too onerous. If you don’t have the requisite coding skills, you could hire an expert to do it for you. A couple possible resources are https://jobs.wordpress.net/ or https://jetpack.pro/ . Do a plugin search first though ?? Even if a plugin is not a perfect match, having an expert tweak the plugin code is probably cheaper than starting from scratch.

    Depending on whether your hosting provides Geo based features, such as a database, you may be able to leverage that. Alternatively as mentioned you would need a database of sorts that contains the required Geo location information.

    An example would be https://www.maxmind.com/en/geoip2-databases >> MaxMind’s GeoLocation database.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘redirect customer based off zipcode’ is closed to new replies.