summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/cart/CartShipping.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-30 23:51:15 -0500
committerJules Laplace <jules@okfoc.us>2015-11-30 23:51:15 -0500
commit848730bdbc1e1b2c81274385d85fd385422323d8 (patch)
tree1e60722135d553860a4e57b653198fe547883475 /StoneIsland/www/js/lib/cart/CartShipping.js
parent2c063f920983c2b8b4584a21471c70521a391009 (diff)
use_stored_credit_card
Diffstat (limited to 'StoneIsland/www/js/lib/cart/CartShipping.js')
-rw-r--r--StoneIsland/www/js/lib/cart/CartShipping.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartShipping.js b/StoneIsland/www/js/lib/cart/CartShipping.js
index 9b8205c1..ec9394da 100644
--- a/StoneIsland/www/js/lib/cart/CartShipping.js
+++ b/StoneIsland/www/js/lib/cart/CartShipping.js
@@ -5,6 +5,7 @@ var CartShipping = FormView.extend({
action: sdk.cart.set_shipping_address,
list_mode: true,
+ data: {},
template: $("#cart_shipping .template").html(),
@@ -84,7 +85,7 @@ var CartShipping = FormView.extend({
})
if (this.list_mode) {
- address_id = $("[name=AddressId]").filter(function(){ return $(this).prop("checked") }).val()
+ address_id = this.$("[name=AddressId]").filter(function(){ return $(this).prop("checked") }).val()
address_data = app.account.addressLookup[ address_id ]
}
else {
@@ -103,6 +104,8 @@ var CartShipping = FormView.extend({
shipping_info.Region = address_data.Province
shipping_info.CountryCode = CANADIAN_LOOKUP[ address_data.Province ] ? "CA" : "US"
+ this.data = shipping_info
+
return shipping_info
},