PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 27th, 2010, 07:01 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
Question zipcode question

I'm trying to add the Canadian postal codes to my installation also. I downloaded the file form the link above and I think have it about ready. Not sure about the zipcodetype field though. What would go there or can it be blank?
dknelson is offline   Reply With Quote
Old June 27th, 2010, 11:01 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
well for the purpose of our program the zipcode lat and lon fields are the ones needed.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 27th, 2010, 11:11 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
Thanks...this program is the only one I'm concerned with. It should work then.
dknelson is offline   Reply With Quote
Old June 27th, 2010, 11:12 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
yes the other is erroneous data as far as our program is concerned

we use lon and lat and zipcode for the distance calculations.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 27th, 2010, 11:46 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
Well heck...I thought for sure I had it. Import went fine and the data appears to be in the table. I then tried placing a test ad though. Seemed to work OK but then when I view the ads, it says "no zip code" beside the test ad. When I edit the ad, it shows the zip code but does not appear to be recognizing it. I'm attaching a screen shot of just a small section of the zip data table. Any suggestions?
Attached Images
File Type: jpg ziptable.jpg (65.8 KB, 11 views)

Last edited by dknelson; June 27th, 2010 at 12:01 PM.
dknelson is offline   Reply With Quote
Old June 27th, 2010, 01:27 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Looks fine to me

So you edit the ad the zipcode field is filled in in the products table?

I cant really respond without a url and login

You can also
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 27th, 2010, 03:36 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
Yes, if I edit the ad, the zipcode field is still filled in but it still shows "no zip code" in the product listing.

The URL is:
Main Index - VentureRider Classifieds

I tried to send you a login and password but you aren't accepting PMs. Let me know where to send it and I'll be happy to do so.

Last edited by dknelson; June 27th, 2010 at 04:20 PM.
dknelson is offline   Reply With Quote
Old June 27th, 2010, 04:23 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
1985 VENTURE ROYALE - VentureRider Classifieds

where is a specific ad you have put the zipcode on?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 27th, 2010, 04:39 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
Sorry about that. Here it is:

http://www.venturerider.org/classifi...p?product=2927

Zip code entered is: L6K1M

Is says no zip code though.
dknelson is offline   Reply With Quote
Old June 27th, 2010, 06:29 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
Your saying if you hit edit ad it has a zipcode there right

HMM

Has to be something with your canadian info something is not calculating correctly
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 27th, 2010, 07:15 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
Yes, if I hit edit the zip code is in the zip code field. You must be right. The data came from the link posted in this thread but maybe it's incorrect. I don't see anything wrong with it but heck if I know.
dknelson is offline   Reply With Quote
Old June 27th, 2010, 07:19 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
OK...I think I have found it. It appears that all the Lon and Lat values are switched.
dknelson is offline   Reply With Quote
Old June 27th, 2010, 07:52 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
Well...they were switched but it's still doing the same thing. Oh well...I'll work on it some more tomorrow.
dknelson is offline   Reply With Quote
Old June 28th, 2010, 06:44 AM   #14 (permalink)
Member
 
Join Date: Jun 2007
Posts: 316
Question

Quote:
Originally Posted by dknelson View Post
I'm trying to add the Canadian postal codes to my installation also. I downloaded the file form the link above and I think have it about ready.
Hi ..

Our site is in Canada and we'd like to use the ZIP CODE field for both Canada and the U.S.

Where did you find the file you mentioned?

If you get this working, we'd appreciate any feedback on how you did that.

Thanks for any advice ..

Regards,
Doug
Badger is offline   Reply With Quote
Old June 28th, 2010, 07:28 AM   #15 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
Not a problem. I will be happy to share but so far, I haven't got it working. I'm traveling today but hopefully will take another look at it tonight.
dknelson is offline   Reply With Quote
Old June 28th, 2010, 10:53 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
yeah your lat and lon has to be correct as if the calculations are not right then there is an issue.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 28th, 2010, 04:06 PM   #17 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
OK...here is the problem. The LON and LAT values were switched. I got that corrected but then still had the same problem.

Then I found out what is causing this. The Canadian postal codes are 6 characters. The classifieds only allows 5 characters. When I enter the 6 character code, the classifieds software truncates it and deletes the last character. I changed one of the Canadian codes to a 5 character code by simply deleting the final character and then it works correctly. Mileage was displayed in the listing. The database field IS a 6 character string.

So my question is WHERE to I change the Classifieds software so that it allows 6 characters for the postal code. I found values of 5 for zipcode length in the uploadproduct template and the editproduct templates. I changed both of those to 6 but it is still changing it to 5 characters when I submit an ad. So where do I change it?
dknelson is offline   Reply With Quote
Old June 28th, 2010, 04:10 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
well in mysql in the zipcode field in the products table change the field to 6 characters not 5 and you should be okay.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 28th, 2010, 04:42 PM   #19 (permalink)
Member
Verified Customer
 
Join Date: Apr 2006
Location: OH
Posts: 134
I hate to keep asking dumb questions but I'm not finding a products table. The only field I've found for zipcode is classified_addresses and that field is set at 15.

I did find a zipcode string set to 5 in adproducts. Changed it to 6 but still getting truncated to 5 when I submit the ad.

Last edited by dknelson; June 28th, 2010 at 04:53 PM.
dknelson is offline   Reply With Quote
Old June 28th, 2010, 08:08 PM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
we dont have a table called addresses

If you change the field to varchar 10 in the cp_products table you should then be able to upload an ad and keep it save I just tried it.

http://www.reeftalk.com/classifieds/

check out the ad with the clouds
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; June 28th, 2010 at 08:15 PM.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort by distance rather than zipcode?! jammy_basturd Classifieds Bug Reports 7 November 16th, 2009 06:37 PM
ZIPcode database hubix Classifieds How do I...? 1 December 4th, 2006 03:08 PM
2.5 Search without zipcode not possible? zews Classifieds Installation & Upgrades 3 February 13th, 2006 05:24 PM
Removing zipcode aberg Classifieds How do I...? 4 February 7th, 2006 11:29 AM
zipcode data fabz Classifieds Installation & Upgrades 5 April 18th, 2005 05:51 PM


All times are GMT -5. The time now is 07:37 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0