I have a problem displaying my shopping cart in a browser on mobile devices. Below is the code:
echo $this->Html->link('<span class="glyphicon glyphicon-shopping-cart"></span> Cart <span class="badge" id="cart-counter">'.$count.'</span>',
array('controller'=>'carts','action'=>'view'),array('escape'=>false));
hard-coded in html:
<?php echo '<span class="glyphicon glyphicon-shopping-cart"></span><a href="https://sample.com/carts/view">Cart</a><span class="badge" id="cart-counter">'.$count.'</span>'; ?>
On a desktop computer, it looks like this (and is clickable):
(Unfortunately, I am not allowed to post a picture here -- Argh!!-- so: it looks like an actual shopping cart with the number of items next to it)
On a mobile device it shows up as a sort of list symbol which is not clickable.
Anybody has encountered that problem? Thanks!