send billing info as shipping in updateSummary if box is checked

This commit is contained in:
Paul Driver 2010-05-03 17:32:57 -07:00
parent a6a7c6c198
commit 10d86dbf1a

View file

@ -344,14 +344,16 @@
method: 'ajaxPrices'
};
if (addressIdCounts(shipping)) {
params.shippingId = shipping;
}
if (addressIdCounts(billing)) {
params.billingId = billing;
}
if (this.sameShipping()) {
params.shippingId = params.billingId;
} else if (addressIdCounts(shipping)) {
params.shippingId = shipping;
}
this.request('GET', params, function (o) {
var response = self.json.parse(o.responseText);