summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products/ProductView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
-rw-r--r--StoneIsland/www/js/lib/products/ProductView.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js
index 5fe1fe7b..84889db1 100644
--- a/StoneIsland/www/js/lib/products/ProductView.js
+++ b/StoneIsland/www/js/lib/products/ProductView.js
@@ -193,13 +193,14 @@ var ProductView = ScrollableView.extend({
save: function(){
// add to cart
if ( ! auth.logged_in() ) {
- auth.defer_add_to_cart = { size: this.size, code: this.code }
+ auth.deferred_product = { size: this.size, code: this.code }
}
else if ( ! auth.has_cart() ) {
auth.deferred_product = { size: this.size, code: this.code }
auth.create_cart(auth.defer_add_to_cart)
}
- else {
+ else {
+ // ADD TO CART!
}
},