Building Zip Code User Verification from list?

18 0 2



I have not been able to get any of the apps from the Shopify App Store to work to restrict zip codes/zone for free delivery services - as I am a small business with only 15-20 orders a week I am going to try to rely on the honor system..


So I was able to build a basic drop down from with a list of 30 zip codes that we offer local delivery to and put it on the cart page.


I was wondering if anyone can help me create the code that would change this to be a user input/verification field?


So if user puts in 11111 and it sees it on the list of the 30 zip codes I defined, it would return: "Great, free local delivery is available!" and if it's not it would return "Sorry, we do not offer free delivery, but paid shipping options are available at checkout."