![]() |
Using Postcode Anywhere in new onepagecheckout |
Post Reply ![]() |
Author | |
John2710 ![]() Newbie ![]() Joined: 02-December-2007 Location: United Kingdom Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 17-February-2011 at 6:52am |
Hi,
I am hoping someone can help me out here. I have emailed support who say they are short staffed and to post in here for a solution, as they cannot answer non productcart related queries at this time,so here it is. I use postcode anywhere, a service where you can enter a postcode (zip) in the address box and it presents a list of addresses for that postcode, which the user then selects, and it populates the form. see www.postcodeanywhere.co.uk for what I am on about I previously entered this in the pc/login.asp file previous to version 4. It was quite easy to see on the page where to add the line of javascript that points to postocode anywhere On V4 this has now all changed, and seems to use lots of jquery and javascript, which make sit difficult for me to see where `i need to add the javascript code It needs to go on the page that asks for a delivery address, as well as the billing address page. Can some one please point me to the correct page where I need to enter the 2 javascript entries Many thanks John |
|
![]() |
|
PCA_Henry ![]() Newbie ![]() Joined: 21-February-2011 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi John,
My names Henry and I work for the Postcode Anywhere support team. If you would like to get in touch with us (details available at http://www.postcodeanywhere.co.uk) we can work with you to try and get your integration back up and running.
Henry
Postcode Anywhere
|
|
![]() |
|
intour ![]() Senior Member ![]() Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi Henry,
If you get this sorted could you let me know please. I have a few customers who may be interested in using your service.
Nigel
|
|
![]() |
|
John2710 ![]() Newbie ![]() Joined: 02-December-2007 Location: United Kingdom Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
HI,
i got help from PostcodeAnywhere on this, so I thought I would post the solution to this, so anyone else searching can also use this in the UK This is for V4 of productcart.Yuu also need an account with postcodeanywhere. 1. Log into your postcode anywhere account at www.postcodeanywhere.co.uk 2. click on Setup account from the menu on the left 3. Choose the option - I want my customers to be able to quickly fill in their addresses on my web site 4. Next choose the option 'Website client (recommended)' . You are now creating the key that postcode anywhere uses. You need to name your key so you know which button it relates to for future reference.A good name might be 'domain name - billing address" for example 4. Choose the option to have 2 lines in the address, and a separate company box, since this is what productcart uses. 5. The next page will generate a line of javascript for you automatically. Copy this code 6. Now paste this code after the following line of code in onepagecheckout.asp <td><input type="text" name="billzip" id="billzip" value="<%=pcStrBillingPostalCode%>" /><PLACE JAVASCRIPT WEB CLIENT CODE HERE> This will create a setup button on your webpage next to the postcode box. You then need to upload your modified onepagecheckout.asp to your pc folder, and then view the page on your website. You will then see a button that says 'set up postcode anywhere'. You need to click on this and follow the instructions. Here you will basically map the string variables from the productcart asp page to the relevant name in postcode anywhere. These are quite easy to do ie billzip is obviously billing postcode id, so you would match this to 'postcode' on postcode anywhere. billcity is obviously the billing City, so you would match this to the 'City' on postcode anywhere PLease note: The list will show ALL the variable strings that are on the onepagecheckout.asp form in thelist. You only need to choose the ones that are relevant to the form you are wanting to populate, which is the billing address. If you want to do this for the shipping/delivery address see below for how to do this Once youve done this for all the relevant boxes on the productcart form click finish, refresh the page, and the button should now work. If you need to do this for the shipping address lookup, you need to repeat the steps above, as you need a new key for each button. You then get a new piece of javascript that you insert after the following line of code in onepagecheckout.asp <td><input type="text" name="shipzip" id="shipzip" /><PLACE JAVASCRIPT WEB CLIENT CODE HERE> A note to get this working in IE. To get the button to display correctly in Internet Explorer you will need to change the JavaScript as follows: Replace: http://services.postcodeanywhere With: https://services.postcodeanywhere This will get around the security certificate which is blocking the button from displaying; this is a known issue within Internet Explorer. Hope this helps with anyone trying to set this up. Any issues, then email the postcode anywhere team. They are very helpfull Thanks John |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |