Closed sanalrenk closed 7 years ago
Well, I don't have an example right now. I will be adding that later. As a heads-up for you, the below change will make the count to be displayed anywhere on the page. Add the element where you want to display the count.
<span class="sc-cart-count">0</span>
Aslo you need to hack one line of source code https://github.com/techlab/SmartCart/blob/master/src/js/jquery.smartCart.js#L357
change from
$('.sc-cart-count',this.cart_element).text(this.cart.length);
to
$('.sc-cart-count').text(this.cart.length);
Hope that helps Thank you
Thanks, it's working.:)
Hello again, it is showing cart items in shopping cart page, but if I go another page, it is reset to zero.
Hello, thanks for the nice cart. this is not issue, I ask question.
How can I place only this: in top menu. Thanks.