send billing info as shipping in updateSummary if box is checked
This commit is contained in:
parent
a6a7c6c198
commit
10d86dbf1a
1 changed files with 6 additions and 4 deletions
|
|
@ -344,14 +344,16 @@
|
||||||
method: 'ajaxPrices'
|
method: 'ajaxPrices'
|
||||||
};
|
};
|
||||||
|
|
||||||
if (addressIdCounts(shipping)) {
|
|
||||||
params.shippingId = shipping;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (addressIdCounts(billing)) {
|
if (addressIdCounts(billing)) {
|
||||||
params.billingId = billing;
|
params.billingId = billing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.sameShipping()) {
|
||||||
|
params.shippingId = params.billingId;
|
||||||
|
} else if (addressIdCounts(shipping)) {
|
||||||
|
params.shippingId = shipping;
|
||||||
|
}
|
||||||
|
|
||||||
this.request('GET', params, function (o) {
|
this.request('GET', params, function (o) {
|
||||||
var response = self.json.parse(o.responseText);
|
var response = self.json.parse(o.responseText);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue