Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 Tips and Tricks - HALL OF FAME
 Address verification - smarty streets code
Previous Page
Author « Topic »
Page: of 2

papawj
New Member

USA
54 Posts

Pre-sales questions only
(More Details...)

Posted - 01/14/2020 :  09:56:59  
Yes, I have included the updated code you provided. seems pretty straight forward so not sure why it's not working on the ipad/iphone.

dbdave
ECT Moderator

USA
9595 Posts

Posted - 01/14/2020 :  13:07:52  
Hi, I did get your message and looked at the site.
The zip is not filling in when an address is selected from the drop down.
I looked at the source of the page and you have the old code still.
If that site is on 7.1.7 then you need the changes I posted.
Below, I have the entire code, so use that, but fill in your keys.

<script src="//d79i1fxsrar4t.cloudfront.net/jquery.liveaddress/5.1/jquery.liveaddress.min.js"></script>
<script>
window.onload = onPageLoad();
$("input.shipdiff").click(function() {
verifychange($("#shipdiff").val());
});
function onPageLoad() {
verifychange($("#shipdiff").val());
}
function verifychange(obj) {
if (obj==1){
document.getElementById("scountry").value = 1;
checkoutspan('s');
var ss = jQuery.LiveAddress({
key: 'YOUR_WEBSITE_KEY_HERE',
verifySecondary: true,
debug: false,
autocomplete: 7,
submitVerify: false,
target: "US",
addresses: [{
address1: "#address",
address2: "#address2",
locality: "#city",
administrative_area: "#state",
postal_code: "#zip",
country: "#country"
}, {
address1: "#saddress",
address2: "#saddress2",
locality: "#scity",
administrative_area: "#sstate",
postal_code: "#szip"
}]
});
}else{
var ss = jQuery.LiveAddress({
key: 'YOUR_WEBSITE_KEY_HERE',
verifySecondary: true,
debug: false,
autocomplete: 7,
submitVerify: false,
target: "US",
addresses: [{
address1: "#address",
address2: "#address2",
locality: "#city",
administrative_area: "#state",
postal_code: "#zip",
country: "#country"
}]
});
} }


I also see this error -
quote:
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.


This can cause all sorts of problems, so you need to be declaring a character set on your pages.

Thanks,
David

papawj
New Member

USA
54 Posts

Pre-sales questions only
(More Details...)

Posted - 01/14/2020 :  14:10:35  
Working perfectly now. Not sure how I messed that up but it's great to have a second set of eyes to set me straight. The ECT Team is AWESOME!!! Many Thanks.

oakworks
Starting Member

USA
7 Posts

Posted - 12/02/2021 :  08:18:04  
I've started having an issue with this recently where the Address lookup/verification is causing excessive lookups. in the past the lookups averaged about 800 per month. Suddenly, I'm getting over 5000 per day. Wondering if anyone else is having this same issue and if there's a fix to resolve this. I have a 5k subscription and I am being charged money every day because of the excessive lookups occuring.

Edited by - oakworks on 12/02/2021 08:18:41

dbdave
ECT Moderator

USA
9595 Posts

Posted - 12/02/2021 :  14:57:21  
Hi oakworks, that's really odd.
Even one of the nasty bots that come along from time to time should not be causing that.
Have you tried to contact smartystreets to ask them if they can see the IP addresses of these queries?
If so, and it's one IP, then you should be able to block them.
If they cannot see that info, perhaps they have an explanation.

I have a 60k annual lookup package, but if I were getting 5000/day that would only be 12 days and I would get zapped with a renewal, so I don't think I'm seeing this issue.
I will take a look at my account though as I believe it has a counter.

Let us know what you find from smartystreets.

Thanks,
David

oakworks
Starting Member

USA
7 Posts

Posted - 12/03/2021 :  04:20:09  
Thanks Dave,
I spoke with SmartyStreets support and they could provide no reason as to why the problem is occurring. I did get a log of hits and the average hit count jumped from around 3 per address to over 200 per address lookup. I have emailed them back to see if there's something that has changed on their end since I'm using the same code that has been working for over a year.

dbdave
ECT Moderator

USA
9595 Posts

Posted - 12/03/2021 :  07:38:52  
Hi, I checked my smartystreets account and I can see the current number of lookups and it's not unusual or showing signs of any issue.

It would be down to something on your site, or the connection to smartystreets I'm guessing.
You might want to do some late night testing when your site activity is low.
Check the number of lookups in S/S and run a few test orders and see how the number of lookups changed.

Thanks,
David

oakworks
Starting Member

USA
7 Posts

Posted - 12/09/2021 :  07:30:29  
Just a follow-up. I was instructed by SmartyStreets Support to generate and assign a new key to resolve the issue. After doing that and deleting the old key, the issue was resolved.

oakworks
Starting Member

USA
7 Posts

Posted - 08/04/2022 :  08:55:10  
SmartyStreets sent out a notice indicating "On Oct 4, 2022, the US Autocomplete [Basic] API will be deprecated and will cease functioning"

Just wondering if that affects the integration of SmartyStreets with the ETC cart.

dbdave
ECT Moderator

USA
9595 Posts

Posted - 08/04/2022 :  12:04:58  
Hi, I saw the email as well.
I'll be looking into this soon and if any changes are required, I post the changes.
Thanks,
David
Page: of 2 « Topic »  
Previous Page
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000