Set customer's shipping and billing addresses
Ecwid.Cart.setAddress()
Ecwid.Cart.setAddress()Ecwid.Cart.setAddress(
{
"name": "John Carmichael",
"companyName": "Cool Slippers",
"street": "5th Ave",
"city": "New York",
"countryName": "United States",
"postalCode": "10002",
"stateOrProvinceCode": "NY",
"phone": "+1 234 523 11 42"
},
function(successCallback){ console.log('Success') },
function(errorCallback){ console.log('Fail') }
);
// prints
// SuccessEcwid.Cart.setBillingAddress()
Ecwid.Cart.setBillingAddress()Last updated
Was this helpful?
