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 How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 16th, 2009, 09:05 AM   #1 (permalink)
Registered User
Verified Customer
 
Join Date: Apr 2008
Posts: 41
Zip / Post code - UK not working

I appreciate that the zip code feature has been designed for use with US and Canadian zip codes, but I've managed to import a table of UK post codes in to the zipcode DB but it still isn't working.

Everytime I enter a zip code, the cookie is created fine, but the input box in which you enter the zip code just reappears.

Anyone know what mods are needed to get the system working with UK post codes? I found a few posts/topics by BenFF, but his code was moved to another site that is now defunct.

Pleasseeeeeee.
jammy_basturd is offline   Reply With Quote
Old March 16th, 2009, 09:30 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
Not sure what you mean really

The UK post database would need to be entered into our zipData table in the same proper format so it is readable by the program but aside from this the program should be totally able to read alphanumeric zipcodes.
__________________
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 March 16th, 2009, 09:33 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
The only issue we ever had in the past was typecasting the zipcode as an INT (interger) whereas along time ago we made sure it was a STRING so alphanumeric zipcodes could be used. In fact Canada uses alphanumeric zipcodes if I am not mistaken. Only the US uses numeric zipcodes I think.
__________________
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 March 16th, 2009, 09:41 AM   #4 (permalink)
Registered User
Verified Customer
 
Join Date: Apr 2008
Posts: 41
Hmmm, not sure exactly what the problem is then! :S

This is a sample from the CSV I uploaded in phpyMyAdmin:
Code:
Content visible to verified customers only.
The product is storing the post code fine, and the cookie with my post code is there too.

Would you like me to send you a link and server login details?
jammy_basturd is offline   Reply With Quote
Old March 16th, 2009, 09:48 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
well what do you think is wrong you can post a url and test user login here
__________________
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 March 16th, 2009, 09:49 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
Also based on that CVS nothing should get imported into our table. There are nine fields not 8 so your missing one.

,,AB10,,,,Aberdeen,,'57.13','-2.11'
__________________
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 March 16th, 2009, 10:10 AM   #7 (permalink)
Registered User
Verified Customer
 
Join Date: Apr 2008
Posts: 41
Haha, there was more than that wrong with it. Can't believe I didn't spot that the longitude field wasn't there when I browsed the table in phpMyAdmin! Technically there were 9 fields there, because of the comma at the end, but the long and lat fields weren't in the right place.

Also, found that the ' either side of the long and lat fields were messing it all up. With those there it wasn't working. Now I've removed them its calculating the mileage fine!

I read in another topic that a user can't change their post code unless they delete their cookies?! Like the other user that posted about this I think its incredibly undesirable. Surely it wouldn't be too hard to have a page in the My Profile section that allowed you to change the post code? You could just nick the input box and code that you already have to overwrite what is already written in the cookie?
jammy_basturd is offline   Reply With Quote
Old March 16th, 2009, 10:20 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
well why not make the cookies only viable to the browser session and then deleted

IN showcat.php

Code:
Content visible to verified customers only.
change to say this

Code:
Content visible to verified customers only.
__________________
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 March 16th, 2009, 10:26 AM   #9 (permalink)
Registered User
Verified Customer
 
Join Date: Apr 2008
Posts: 41
Thanks Chuck.
jammy_basturd is offline   Reply With Quote
Old March 16th, 2009, 10:37 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
have a good day
__________________
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 17th, 2009, 04:52 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Mar 2006
Posts: 80
Where i can find UK zip code data to import into the classified?
nasko is offline   Reply With Quote
Old June 17th, 2009, 06:57 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
I cant say you would need to search for a database that contains the specific information like city lat lon zipcode etc and no doubt you would probally need to rework the rows to be compatible with the zipcode table format in our table.
__________________
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 18th, 2009, 02:11 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Jun 2004
Location: Edinburgh,Scotland
Posts: 147
what is this for?

Is this for when users buy products?

I'm UK so would prob need to do this? if so!
__________________
Cheers for your help!
hIBEES is offline   Reply With Quote
Old June 18th, 2009, 02:16 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
It is to show distance from say a perspective buyer.
__________________
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 18th, 2009, 02:38 PM   #15 (permalink)
Member
Verified Customer
 
Join Date: Jun 2004
Location: Edinburgh,Scotland
Posts: 147
Quote:
Originally Posted by Chuck S View Post
It is to show distance from say a perspective buyer.
ah for possible postage costs, think i'll let users decide there p & p price,

thanks
__________________
Cheers for your help!
hIBEES is offline   Reply With Quote
Old June 18th, 2009, 04:16 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,662
Distance just for distance sake.
__________________
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
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
Zip Code tj2653 ReviewPost Bug Reports 3 July 24th, 2006 11:14 AM
Review Post and Zip Code feature CavySpirit Before You Buy 3 July 18th, 2006 08:40 PM
Zip Code Function still not working right Goose Classifieds How do I...? 7 May 3rd, 2006 08:47 AM
Zip Code feature not working...(FIXED) ludachris Classifieds Bug Reports 5 July 18th, 2005 12:38 PM
BB Image Code and <img> Tag Code nor working pdatotaal Installs and Upgrade - vBulletin 3.0.X 2 March 7th, 2005 11:31 AM


All times are GMT -5. The time now is 03:44 PM.

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