Display Items by Postal Code

In example 6 , we learned how to display auction items from a specific Ebay Seller. In this example, we'll see how to localize item listings by displaying items from or close to a specific postal code.

Why is this important? Let's say you have a site that caters to a specific area in the world. Like Dallas, Texas or Frankfurt, Germany. You can offer your site visitors auction items are available locally. This encourages users to look and place bids, because giving a sense of comfort because the items are local to where they reside.

Do keep in mind, that by using this setting, you can potentially expect less results to appear. This is especially true for areas with a small population. It's also good, when you are hoping to entice local customers. For example, if your site is about a Corvette Club in Dallas, Texas, then listing Corvettes available in the Dallas Texas Area would be quite beneficial.

In the source of this file, where your phpBay code is, this would look like:

$ebay->eb_fspt = "1";
$ebay->eb_fpos = "75204";
$ebay->eb_sadis = "100";

So what do these settings mean?
fspt - means to search by Postal Code
fpos - the Postal Code search near
sadis - how many miles away from the Postal Code to search

Basically, you are turning on the search by Postal Code, then telling Ebay which Postal Code to use, then specifying up to how many miles away to return results for the search, from the Postal Code.

View the source code of this file to see the php code used. Click here to view the summary.

The Result

chevrolet--corvette-2006-corvette-3lt-nav-repaired-damaged-salvage Chevrolet : Corvette 2006 CORVETTE 3LT NAV REPAIRED DAMAGED SALVAGE
US $24,999.00
Auction Ends: End Date: Thursday Sep-09-2010 7:07:18 PDT
Buy it now | Add to watch list
chevrolet--corvette-*2011*-velocity-yellow-grand-sport-coupe-awesome!!! Chevrolet : Corvette *2011* Velocity Yellow Grand Sport Coupe---- Awesome!!!
US $52,100.00 (22 Bids)
Auction Ends: End Date: Thursday Sep-09-2010 7:17:42 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-z16-grand-sp-2010-chevrolet-corvette-grand-sport!!-rwd-convertible! Chevrolet : Corvette Z16 Grand Sp 2010 Chevrolet Corvette Grand Sport!! RWD, Convertible!
US $54,900.00
Auction Ends: End Date: Thursday Sep-09-2010 9:00:00 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-silver-paddleshift-auto-perfect-condition-1-owner Chevrolet : Corvette Silver, paddleshift/auto, perfect condition, 1 owner
US $33,500.00
Auction Ends: End Date: Thursday Sep-09-2010 12:41:44 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-z06-z06-2lz-pkg-victory-red-blk-6k-miles-must-see-options!! Chevrolet : Corvette Z06 Z06 2LZ PKG-VICTORY RED/BLK-6K MILES-MUST SEE OPTIONS!!
US $45,000.00 (0 Bid)
Auction Ends: End Date: Thursday Sep-09-2010 13:21:40 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-2000-corvette-frc-with-low-low-miles-super-sharp-!!! Chevrolet : Corvette 2000 Corvette FRC with low low miles, Super Sharp !!!
US $18,000.00 (1 Bid)
Auction Ends: End Date: Thursday Sep-09-2010 14:06:03 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-nice-silver-great Chevrolet : Corvette NICE SILVER,GREAT
US $18,995.00
Auction Ends: End Date: Thursday Sep-09-2010 14:13:41 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-1977-corvette-new-interior-great-project-cheap Chevrolet : Corvette 1977 CORVETTE ---NEW INTERIOR -- GREAT PROJECT--CHEAP
US $2,999.99 (2 Bids)
Auction Ends: End Date: Thursday Sep-09-2010 16:32:48 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-zr-1-chevy-corvette-zr1-3zr-2010` Chevrolet : Corvette ZR-1 CHEVY CORVETTE ZR1/3ZR 2010`
US $108,900.00
Auction Ends: End Date: Thursday Sep-09-2010 17:33:09 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-1973-corvette-s-matching-ac-tilt-power-steerin-brakes Chevrolet : Corvette 1973 Corvette #s Matching AC Tilt Power Steerin Brakes
US $9,900.00
Auction Ends: End Date: Friday Sep-10-2010 7:08:21 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-1972-corvette-s-match-tilt-ac-power-windows-brakes Chevrolet : Corvette 1972 Corvette #s Match Tilt AC Power Windows Brakes
US $11,900.00
Auction Ends: End Date: Friday Sep-10-2010 7:18:10 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-supercharged-2008-chevrolet-corvette-supercharged-550+-h-p-auto Chevrolet : Corvette Supercharged 2008 Chevrolet Corvette Supercharged, 550+ H.P., Auto
US $41,888.00
Auction Ends: End Date: Friday Sep-10-2010 8:58:35 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-1977-chevy-corvette-all-original Chevrolet : Corvette 1977 CHEVY CORVETTE ALL ORIGINAL
US $5,000.00 (0 Bid)
Auction Ends: End Date: Friday Sep-10-2010 9:49:43 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-2004-chevrolet-corvette-coupe-polished-alloys-more! Chevrolet : Corvette 2004 Chevrolet Corvette Coupe, Polished Alloys, More!
US $15,000.00 (0 Bid)
Auction Ends: End Date: Friday Sep-10-2010 10:06:07 PDT
Bid now | Buy it now | Add to watch list
chevrolet--corvette-for-sale-50th-anniversary-convertible-corvette Chevrolet : Corvette For Sale: 50th Anniversary Convertible Corvette
US $23,100.00 (8 Bids)
Auction Ends: End Date: Friday Sep-10-2010 12:06:52 PDT
Bid now | Buy it now | Add to watch list