From 10d86dbf1a4c9fddca1656cc85d88593c8e2a8cd Mon Sep 17 00:00:00 2001 From: Paul Driver Date: Mon, 3 May 2010 17:32:57 -0700 Subject: [PATCH] send billing info as shipping in updateSummary if box is checked --- www/extras/shop/cart.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/www/extras/shop/cart.js b/www/extras/shop/cart.js index 92e92ad44..0781d5403 100644 --- a/www/extras/shop/cart.js +++ b/www/extras/shop/cart.js @@ -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);