From 108f370bd04b9f8ccec1874d50b98cf5079e8a80 Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Tue, 10 Feb 2015 05:19:39 +0100 Subject: [PATCH] now cart number shows number of actual items not distinct ones (equivalent to windeln) --- front-ui/app/css/items.css | 2 +- front-ui/app/stores/cartStore.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front-ui/app/css/items.css b/front-ui/app/css/items.css index c7d0fac..4ddfaf5 100644 --- a/front-ui/app/css/items.css +++ b/front-ui/app/css/items.css @@ -19,7 +19,7 @@ } .single_item div { - width: 315px; + width: 300px; } .single_item h1 { diff --git a/front-ui/app/stores/cartStore.js b/front-ui/app/stores/cartStore.js index ed3f224..129dce9 100644 --- a/front-ui/app/stores/cartStore.js +++ b/front-ui/app/stores/cartStore.js @@ -80,7 +80,7 @@ var CartStore = _.extend({}, EventEmitter.prototype, { if(states.hasOwnProperty(key)){ var value = states[key]; if (value.get('count') > 0) { - numberOfItems++; + numberOfItems += value.get('count'); } } };