Code zip code lookup - process JSON result and display for user

Solved
Highlighted
New Member
1 0 0

Hi, I have a client (shop is already up and running) that wants to add a zip code lookup to show users the estimated shipping time. We have a service we're hooking into to get the data, just need to code the ZIP Code UI, call the URL, consume the JSON response, and display the results. And I'm too overbooked to deal with it right now. They'd like to have it by July 1.

For example, other shops using this service - click the links on top to see in use:
https://shop.numitea.com/
https://shop.torani.com/
https://shop.oberto.com/

The specific ZIP Code look-up code is the following:

URL https://shop.worldpantry.com/shipping/zipcodelookup.aspx?zipcode=XXXXX&key=YYYYYY

Where the XXXXX is the ZIP Code to look up and YYYYY is the partner key that we will provide.

Here are a couple examples:

URL https://shop.worldpantry.com/shipping/zipcodelookup.aspx?zipcode=94107&key=YYYYYY

JSON Response

{
"HasHeatSensitiveProduct": false,
"HasWarmWeatherDelay": false,
"HasExtraProcessDays": false,
"IsWarmWeatherSupported": false,
"WarmWeatherReceiveByDateTime": "2020-04-17T00:00:00Z",
"WarmWeatherOrderByDateTime": "2020-04-16T00:00:00Z",
"WarmWeatherTransitBusinessDays": 1,
"FastShipCalculationError": "No Error",
"ReceiveByDateTime": "2020-04-17T00:00:00Z",
"OrderByDateTime": "2020-04-16T00:00:00Z",
"TransitBusinessDays": 1,
"Zip": "94107",
"IsHawaiiAlaska": false,
"IsExpeditedShipping": false
}

URL https://shop.worldpantry.com/shipping/zipcodelookup.aspx?zipcode=02134&key=YYYYYY

JSON Response

{
"HasHeatSensitiveProduct": false,
"HasWarmWeatherDelay": false,
"HasExtraProcessDays": false,
"IsWarmWeatherSupported": false,
"WarmWeatherReceiveByDateTime": "2020-04-18T21:00:00Z",
"WarmWeatherOrderByDateTime": "2020-04-16T21:00:00Z",
"WarmWeatherTransitBusinessDays": 2,
"FastShipCalculationError": "No Error",
"ReceiveByDateTime": "2020-04-18T21:00:00Z",
"OrderByDateTime": "2020-04-16T21:00:00Z",
"TransitBusinessDays": 2,
"Zip": "02134",
"IsHawaiiAlaska": false,
"IsExpeditedShipping": false
}

 

 

0 Likes
Highlighted
Shopify Partner
2472 129 406

This is an accepted solution.

@Fishbucket  contact me at paull.newton+shopifyforums@gmail.com or PM me directly on the forums

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
Highlighted
Tourist
40 0 1

Hi,

I can help!!

Please add me on Skype: cisin.arnold or Email: arnold.cis20@gmail.com to discuss this further.

Thanks
Arnold

0 Likes
Highlighted

Hello,
Greetings I have read the job description and relevant experience in Shopify customization and ready to help you.
Looking forward to your reply. You can email me at info@elderberrytech.com to discuss further.

Thanks,
Shivank Agrawal
Skype: mayank.agrawal2008

Shopify Expert | info@elderberrytech.com
0 Likes
Highlighted
Excursionist
109 1 1

Hi there, 

I can help. Please contact me at biz@webdesksolution.com or Skype: sales.wds 

0 Likes
Highlighted
Trailblazer
380 15 14

Hi There,

I hope you're keeping great!

I would be happy to work with you. Please give me a suitable time to discuss your requirements.

Also, add me over Skype id- live:jennifer.wcoast or Email- sales@wreximinfotech.com

I look forward to your response!

Stay Well :)

Thanks!

0 Likes