Template support - Cart icon
Posted: Mon Aug 20, 2018 9:29 pm
Hi guys, ive styled my cart icon, updated the common.js to reflect the changes as well for adding/removing/editing cart, which all works fine.
For some reason though, if i add an item to the cart, the icon reverts back to old code, rather than using the new one...
See below :
cart.twig :
What is displayed when adding product :
So for some reason, my "badge" class isnt being added to the code when adding an item to the cart. I've checked everywhere, updated everything i can think of, and its still not working. Removing an item from the cart, the icon stays the same, as it should, its just on adding an item...
Any ideas where to look?
Many thanks!
For some reason though, if i add an item to the cart, the icon reverts back to old code, rather than using the new one...
See below :
cart.twig :
Code: Select all
<button type="button" data-toggle="dropdown" data-loading-text="{{ text_loading }}" class="cartBtn dropdown-toggle">
<i class="fa fa-shopping-cart cartIcon"></i>
<div class="badge"><span id="cart-total">{{ text_items }}</span></div>
</button>
Code: Select all
<button type="button" data-toggle="dropdown" data-loading-text="Loading..." class="cartBtn dropdown-toggle" aria-expanded="false">
<span id="cart-total"><i class="fa fa-shopping-cart"></i> 3</span></button>
Any ideas where to look?
Many thanks!