Skip to content

Commit bdaf69f

Browse files
Merge pull request #28 from styladev/release
release to master
2 parents 991778a + 9eed30e commit bdaf69f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

skin/frontend/base/default/js/styla/connect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ window.stylaUpdateCart = function stylaUpdateCart(data) {
2323
*/
2424
var $cartCountElement = jQuery(".skip-cart .count");
2525
if ($cartCountElement && data.hasOwnProperty('meta')) {
26-
$cartCountElement.html(data.meta.num_items);
26+
$cartCountElement.parent().removeClass('no-count'); /* Removing the no-count class from the parent element */
27+
$cartCountElement.html(data.meta.items_qty);
2728
}
2829
};

0 commit comments

Comments
 (0)