[Skip to main content](#vessel-content)

#   Cart module icon display

##

- **[NicoW](/forum/user/58228-nicow "View NicoW's Profile")**
- [![NicoW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58228-nicow "View NicoW's Profile") Topic Author
- [ Offline](/forum/user/58228-nicow)

Less More

- Posts: 147
- Thank you received: 8
-
-

7 years 1 month ago [\#311413](#311413) by [NicoW](/forum/user/58228-nicow "View NicoW's Profile")  *[Cart module icon display](/forum/32-content-creation/898369-cart-module-icon-display#311413 "-- url of the page with the problem -- :   www.norahlux.red  Hi,  I added : to view &gt; product &gt; 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:")* was created by *[NicoW](/forum/user/58228-nicow "View NicoW's Profile")*

-- url of the page with the problem -- : [ www.norahlux.red](https://www.norahlux.red)

Hi,

I added : Code:

if($this-&gt;cart_type == 'wishlist'){ echo '&lt;i class="far fa-heart" style="font-size:24px;color:white"&gt;&lt;/i&gt;'; } if($this-&gt;cart_type == 'cart'){ echo '&lt;i class="fas fa-shopping-basket" style="font-size:24px;color:white"&gt;&lt;/i&gt;'; }

to view &gt; product &gt; 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: Code:

.topbar-section &gt;div .hikashop_cart_module{ position: absolute; top: 1px; right: 60px; z-index : 0; } .topbar-section &gt;div .hikashop_wishlist_module{ position: absolute; top: 1px; right: 110px; z-index : 0; } .topbar-section &gt;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;

- [ ![hika.png](/forum/attachment/47810) ](/forum/attachment/47810 "hika.png") [ ](/forum/attachment/47810?download=1 "hika.png")
- [ ![hika2.png](/forum/attachment/47811) ](/forum/attachment/47811 "hika2.png") [ ](/forum/attachment/47811?download=1 "hika2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk4MzY5LWNhcnQtbW9kdWxlLWljb24tZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

7 years 1 month ago -  7 years 1 month ago [\#311451](#311451) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Cart module icon display](/forum/32-content-creation/898369-cart-module-icon-display#311451 "-- url of the page with the problem -- :   www.norahlux.red  Hi,  I added : to view &gt; product &gt; 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:")*

Hello,

"***1 how can I make the circles only visible when items are added?***"

On your website url, I can see that when there is no products, you have a little red circle, then to answer your question you have to add css command only on the cart quantity input, for this get the html class on the quantity :
- Point your element, click-right, select inspect (or inspector or inspector tool) , a new window will be display and that you will see html and can see class, here the quantity.

"***2 When i add items to cart, it will produce a second basket on top of the first one, what am i missing?***"

Are you sure that you don't add more than 2 times your cart icon ? I advice you to analyze your code because so far your condition seems good.

"***3th question, can the icons become a link same as the items number link (to wishlist and basket?***"

Sorry, but we don't understand your question, can you precise it, and use some concrete examples ?

Awaiting news from you.
Regards

Last edit: 7 years 1 month ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODk4MzY5LWNhcnQtbW9kdWxlLWljb24tZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
