-- url of the page with the problem -- :
www.norahlux.red
Hi,
I added :
if($this->cart_type == 'wishlist'){
echo '<i class="far fa-heart" style="font-size:24px;color:white"></i>';
}
if($this->cart_type == 'cart'){
echo '<i class="fas fa-shopping-basket" style="font-size:24px;color:white"></i>';
}
to view > product > cart and it produces the wanted outcome.
I have added some code to produce item numers in circles, and when a product is added to wishlist it works fine.
Now I have 2 issues still:
1 how can I make the circles only visible when items are added?
2 When i add items to cart, it will produce a second basket on top of the first one, what am i missing?
(3th question, can the icons become a link same as the items number link (to wishlist and basket?)
Code added to css:
.topbar-section >div .hikashop_cart_module{
position: absolute;
top: 1px;
right: 60px;
z-index : 0;
}
.topbar-section >div .hikashop_wishlist_module{
position: absolute;
top: 1px;
right: 110px;
z-index : 0;
}
.topbar-section >div .hikashop_cart{
position: absolute;
top: -10px;
right: -10px;
border:1px solid white;
background-color:#fa8080;
height:18px;
border-radius:50%;
-moz-border-radius:50%;
-webkit-border-radius:50%;
width:18px;
text-align: center;
line-height: 1.1;
z-index : 1;