now cart number shows number of actual items not distinct ones (equivalent to windeln)
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.single_item div {
|
.single_item div {
|
||||||
width: 315px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.single_item h1 {
|
.single_item h1 {
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ var CartStore = _.extend({}, EventEmitter.prototype, {
|
|||||||
if(states.hasOwnProperty(key)){
|
if(states.hasOwnProperty(key)){
|
||||||
var value = states[key];
|
var value = states[key];
|
||||||
if (value.get('count') > 0) {
|
if (value.get('count') > 0) {
|
||||||
numberOfItems++;
|
numberOfItems += value.get('count');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user