UPS Integration
I've been looking for a couple hours and I can't find a single decent script. I need a PHP script that will allow someone to enter a UPS tracking number on a website, and then display the tracking information. Like how newegg.com does it, if you've ever shopped there.
Anyone used one before? Any recommendations? I'm using PHP 5 btw.
pr0gr4mm3r posted this at 14:39 — 9th July 2007.
He has: 1,502 posts
Joined: Sep 2006
Your going to have to go through UPS's API. Do you have an account with them? A quick Google search shows that you need a "Developer's Key" and an "Access Key".
webwiz posted this at 20:27 — 9th July 2007.
He has: 629 posts
Joined: May 2007
Timothy Luoma has a web form for looking up all kinds of data. This is the code he uses on that form for looking up UPS tracking numbers:
<form action="http://wwwapps.ups.com/etracking/tracking.cgi" method="get">
<p class="search">
<input alt="Track UPS" type="submit" class="submit" value="UPS tracking" />
<input type="hidden" name="tracknums_displayed" value="5" />
<input type="hidden" name="TypeOfInquiryNumber" value="T" />
<input type="hidden" name="HTMLVersion" value="4.0" />
<input type="hidden" name="sort_by" value="status" />
<input alt="Tracking Number" type="text" class="text" name="InquiryNumber1" size="24" maxlength="48" />
</p>
</form>
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
teammatt3 posted this at 21:50 — 9th July 2007.
He has: 2,102 posts
Joined: Sep 2003
I have both pr0g. I downloaded their XML integration stuff, and the readme files are full of mumbo jumbo that doesn't make sense (to me). So I looked around for some scripts and only one looked promising, but it used PHP 4 and the OO stuff in it didn't work in PHP 5 (well, that's what I think was the problem, but I don't really know OO or the difference between 4 and 5).
webwiz, that's not really what I'm looking for. It's just a form that goes to UPS, I want something that integrates with my site. Thanks for trying though
pr0gr4mm3r posted this at 22:05 — 9th July 2007.
He has: 1,502 posts
Joined: Sep 2006
http://us2.php.net/oop will tell you the difference. PHP5 is backwards compatible with PHP4 OOP methods.
http://www.hotscripts.com/Detailed/13897.html is probably the best I found from Google.
You may also want to consider searching for mods for known scripts like OSCommerce.
teammatt3 posted this at 16:26 — 26th July 2007.
He has: 2,102 posts
Joined: Sep 2003
I hired pr0gr4mm3r to create one for me and I'll put it out there for you guys to use. Free of course
Here's the zip
Only works with PHP 5.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.