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

#   Display Cart Icon in Menu

##

- **[dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile")**
- [![dagroupinc's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar57629.jpg)](/forum/user/57629-dagroupinc "View dagroupinc's Profile") Topic Author
- [ Offline](/forum/user/57629-dagroupinc)

Less More

- Posts: 109
- Thank you received: 1
-
-

6 years 7 months ago -  6 years 7 months ago [\#317470](#317470) by [dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile")  *[Display Cart Icon in Menu](/forum/25-install-update/899546-display-cart-icon-in-menu#317470 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16  I've created a menu item 'cart' that displays the 'fa shopping cart' icon. Is there a way to display the icon only if there's something in the cart?  Also is there a way to display a number or visual with it so that customers know there's something in it?")* was created by *[dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile")*

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.16

I've created a menu item 'cart' that displays the 'fa shopping cart' icon. Is there a way to display the icon only if there's something in the cart?

Also is there a way to display a number or visual with it so that customers know there's something in it?

Last edit: 6 years 7 months ago by [dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

6 years 7 months ago [\#317482](#317482) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display Cart Icon in Menu](/forum/25-install-update/899546-display-cart-icon-in-menu#317482 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16  I've created a menu item 'cart' that displays the 'fa shopping cart' icon. Is there a way to display the icon only if there's something in the cart?  Also is there a way to display a number or visual with it so that customers know there's something in it?")*

Hi,

What I would recommend is to do this:
- install the extension "modules anywhere" and activate it
- create a HikaShop cart module with the "mini cart" setting activated in a position that isn't displayed by your template
- use a translation override to adapt the text of the mini cart to include a cart icon, remove the text etc:
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)
- edit your menu item and in the "title" of the menu item, enter a modules anywhere tag to add that mini cart module there.
That way, that menu item will refresh automatically based on what's in the cart. And you can have the quantity of the products in the cart, the total amount, etc

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

- **[dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile")**
- [![dagroupinc's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar57629.jpg)](/forum/user/57629-dagroupinc "View dagroupinc's Profile") Topic Author
- [ Offline](/forum/user/57629-dagroupinc)

Less More

- Posts: 109
- Thank you received: 1
-
-

6 years 7 months ago [\#317511](#317511) by [dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile")  Replied by *[dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile")* on topic *[Display Cart Icon in Menu](/forum/25-install-update/899546-display-cart-icon-in-menu#317511 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16  I've created a menu item 'cart' that displays the 'fa shopping cart' icon. Is there a way to display the icon only if there's something in the cart?  Also is there a way to display a number or visual with it so that customers know there's something in it?")*

I have Modules Anywhere, the icon showing and the shortcode but it does not display quantity.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

6 years 7 months ago [\#317517](#317517) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display Cart Icon in Menu](/forum/25-install-update/899546-display-cart-icon-in-menu#317517 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16  I've created a menu item 'cart' that displays the 'fa shopping cart' icon. Is there a way to display the icon only if there's something in the cart?  Also is there a way to display a number or visual with it so that customers know there's something in it?")*

Hi,

I'll need you to post screenshots of what you did and a link to the page so that we can check on the situation.

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

- **[dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile")**
- [![dagroupinc's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar57629.jpg)](/forum/user/57629-dagroupinc "View dagroupinc's Profile") Topic Author
- [ Offline](/forum/user/57629-dagroupinc)

Less More

- Posts: 109
- Thank you received: 1
-
-

6 years 7 months ago -  6 years 7 months ago [\#317565](#317565) by [dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile")  Replied by *[dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile")* on topic *[Display Cart Icon in Menu](/forum/25-install-update/899546-display-cart-icon-in-menu#317565 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16  I've created a menu item 'cart' that displays the 'fa shopping cart' icon. Is there a way to display the icon only if there's something in the cart?  Also is there a way to display a number or visual with it so that customers know there's something in it?")*

Attached is a PDF with screenshots of the module(s), language override, and menu.

When we enter the module anywhere tag {...} it breaks the navigation/menu — you can see on the last screen. Aside from some CSS and customizing the settings in the Hikashop Cart Module, do we modify the language override?

Additional question: Can we have the cart icon in the menu and a module on the store pages displaying the items, etc. in the cart at the same time?

Please note that the URL is hidden until we go live:

[ skywayyachtworks.com/ships-store](https://skywayyachtworks.com/ships-store)

Last edit: 6 years 7 months ago by [dagroupinc](/forum/user/57629-dagroupinc "View dagroupinc's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

6 years 7 months ago [\#317569](#317569) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display Cart Icon in Menu](/forum/25-install-update/899546-display-cart-icon-in-menu#317569 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16  I've created a menu item 'cart' that displays the 'fa shopping cart' icon. Is there a way to display the icon only if there's something in the cart?  Also is there a way to display a number or visual with it so that customers know there's something in it?")*

Hi,

Humm, then it's not possible like that.
Then what you can do instead, is to remove that menu item, and configure your mini cart module to display in the same position of your template as your menu module so that it displays next to it. That should be good enough. And then, you can customize the display of the cart module with translation overrides as explained before.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5OTU0Ni1kaXNwbGF5LWNhcnQtaWNvbi1pbi1tZW51P3RtcGw9bWFya2Rvd24=) 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.076 seconds

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