mstuart wrote:Thank you! Your suggestion works great, but I have one last issue.
Hi,
You cannot do that with the current implementation. However, here is a work-around:
1) Replace this:
address.customAddressAttributes[0].defaultValue
with this:
address.customAddressAttributes[0].defaultValue | addressName: address
2) Open app.min.js file and in the bottom of the file add this:
angular.module('realOnePageCheckout.filters')
.filter("addressName", addressName);
function addressName() {
return function (defaultValue, address) {
if (defaultValue === null) {
return address.customProperties['fullAddress'];
}
return defaultValue;
};
}
Basically, if the some of the addresses do not have defaultValue the "fullAddress" property will be used. For the New Address entry in the dropdown, the "fullAddress" property is "New Address".
Hope this helps!