 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
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.
|
| |
March 16th, 2009, 09:30 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
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.
|
| |
March 16th, 2009, 09:33 AM
|
#3 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
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.
|
| |
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?
|
| |
March 16th, 2009, 09:48 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
well what do you think is wrong you can post a url and test user login here
|
| |
March 16th, 2009, 09:49 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
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'
|
| |
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?
|
| |
March 16th, 2009, 10:20 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
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.
|
| |
March 16th, 2009, 10:26 AM
|
#9 (permalink)
| | Registered User Verified Customer
Join Date: Apr 2008
Posts: 41
|
Thanks Chuck.
|
| |
March 16th, 2009, 10:37 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
have a good day
|
| |
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?
|
| |
June 17th, 2009, 06:57 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
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.
|
| |
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!
|
| |
June 18th, 2009, 02:16 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
It is to show distance from say a perspective buyer.
|
| |
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 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!
|
| |
June 18th, 2009, 04:16 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,692
|
Distance just for distance sake.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 11:07 AM. | |