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

#   Cart Item Count

##

- **[love\_to\_you\_to@yahoo.com](/forum/user/7084-love-to-you-to-yahoo-com "View love&#95;to&#95;you&#95;to@yahoo.com's Profile")**
- [![love&#95;to&#95;you&#95;to@yahoo.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7084-love-to-you-to-yahoo-com "View love&#95;to&#95;you&#95;to@yahoo.com's Profile") Topic Author
- [ Offline](/forum/user/7084-love-to-you-to-yahoo-com)

Less More

- Posts: 3
- Thank you received: 0
-
-

14 years 6 months ago [\#46868](#46868) by [love\_to\_you\_to@yahoo.com](/forum/user/7084-love-to-you-to-yahoo-com "View love&#95;to&#95;you&#95;to@yahoo.com's Profile")  *[Cart Item Count](/forum/2-general-talk-about-hikashop/46868-cart-item-count#46868 "Hi Nicolas, This question might have been answered previously but I am not finding it. I am new to hikashop and want to display the cart icon on the top of the screen with the number of items in the cart.  I created a custom html module and positioned it on top which takes me to the checkout process but I am unable to display the cart count in that.  Could you please help me with the code snippet which I can use to fulfill this requirement?  Thanks, Lovely Singh")* was created by *[love\_to\_you\_to@yahoo.com](/forum/user/7084-love-to-you-to-yahoo-com "View love&#95;to&#95;you&#95;to@yahoo.com's Profile")*

Hi Nicolas,
This question might have been answered previously but I am not finding it. I am new to hikashop and want to display the cart icon on the top of the screen with the number of items in the cart.

I created a custom html module and positioned it on top which takes me to the checkout process but I am unable to display the cart count in that.

Could you please help me with the code snippet which I can use to fulfill this requirement?

Thanks,
Lovely Singh

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ2ODY4LWNhcnQtaXRlbS1jb3VudD90bXBsPW1hcmtkb3du) 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: 86359
- Thank you received: 14296
-
-

14 years 6 months ago [\#46991](#46991) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart Item Count](/forum/2-general-talk-about-hikashop/46868-cart-item-count#46991 "Hi Nicolas, This question might have been answered previously but I am not finding it. I am new to hikashop and want to display the cart icon on the top of the screen with the number of items in the cart.  I created a custom html module and positioned it on top which takes me to the checkout process but I am unable to display the cart count in that.  Could you please help me with the code snippet which I can use to fulfill this requirement?  Thanks, Lovely Singh")*

Why not just use the hikashop cart module with the "mini cart" option turned on ? That will display a text with the cart item count and the total price. The message can them be customized with a translation override:
[ www.hikashop.com/en/download/languages.html#modify](http://www.hikashop.com/en/download/languages.html#modify)

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

- **[love\_to\_you\_to@yahoo.com](/forum/user/7084-love-to-you-to-yahoo-com "View love&#95;to&#95;you&#95;to@yahoo.com's Profile")**
- [![love&#95;to&#95;you&#95;to@yahoo.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7084-love-to-you-to-yahoo-com "View love&#95;to&#95;you&#95;to@yahoo.com's Profile") Topic Author
- [ Offline](/forum/user/7084-love-to-you-to-yahoo-com)

Less More

- Posts: 3
- Thank you received: 0
-
-

14 years 6 months ago [\#47135](#47135) by [love\_to\_you\_to@yahoo.com](/forum/user/7084-love-to-you-to-yahoo-com "View love&#95;to&#95;you&#95;to@yahoo.com's Profile")  Replied by *[love\_to\_you\_to@yahoo.com](/forum/user/7084-love-to-you-to-yahoo-com "View love&#95;to&#95;you&#95;to@yahoo.com's Profile")* on topic *[Re: Cart Item Count](/forum/2-general-talk-about-hikashop/46868-cart-item-count#47135 "Hi Nicolas, This question might have been answered previously but I am not finding it. I am new to hikashop and want to display the cart icon on the top of the screen with the number of items in the cart.  I created a custom html module and positioned it on top which takes me to the checkout process but I am unable to display the cart count in that.  Could you please help me with the code snippet which I can use to fulfill this requirement?  Thanks, Lovely Singh")*

Thanks a lot Nicolas, it worked. But was wondering if there was an option to display image instead of text (as I was not able to find it).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ2ODY4LWNhcnQtaXRlbS1jb3VudD90bXBsPW1hcmtkb3du) 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: 86359
- Thank you received: 14296
-
-

14 years 6 months ago [\#47380](#47380) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart Item Count](/forum/2-general-talk-about-hikashop/46868-cart-item-count#47380 "Hi Nicolas, This question might have been answered previously but I am not finding it. I am new to hikashop and want to display the cart icon on the top of the screen with the number of items in the cart.  I created a custom html module and positioned it on top which takes me to the checkout process but I am unable to display the cart count in that.  Could you please help me with the code snippet which I can use to fulfill this requirement?  Thanks, Lovely Singh")*

With the translation override system, you can replace the text with HTML code and that way having an image instead of the text.

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

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

Less More

- Posts: 131
- Thank you received: 3
-
-

14 years 4 months ago [\#53960](#53960) by [michael](/forum/user/4939-michael "View michael's Profile")  Replied by *[michael](/forum/user/4939-michael "View michael's Profile")* on topic *[Re: Cart Item Count](/forum/2-general-talk-about-hikashop/46868-cart-item-count#53960 "Hi Nicolas, This question might have been answered previously but I am not finding it. I am new to hikashop and want to display the cart icon on the top of the screen with the number of items in the cart.  I created a custom html module and positioned it on top which takes me to the checkout process but I am unable to display the cart count in that.  Could you please help me with the code snippet which I can use to fulfill this requirement?  Thanks, Lovely Singh")*

Hi Nicolas,

Sorry to ask question here!

I have added a cart icon,as you mentioned, but when I save the file, it show an error message with 2nd line success message:
"Could not save the file ...my directory.../language/overrides/en-GB.override.ini"
"Successfully Saved"

The codes I use is :
&lt;img src="../images/sc-cart1.png" width=22&gt; My Cart (0)

[ ![Picture1&#95;2012-06-14-2.png](/forum/attachment/4281) ](/forum/attachment/4281 "...12-06-14-2.png")

[ ![Picture2&#95;2012-06-14-2.png](/forum/attachment/4282) ](/forum/attachment/4282 "...12-06-14-2.png")

Any impact?

Thank You!

- [ ![Picture1&#95;2012-06-14-2.png](/forum/attachment/4281) ](/forum/attachment/4281 "...12-06-14-2.png") [ ](/forum/attachment/4281?download=1 "...12-06-14-2.png")
- [ ![Picture2&#95;2012-06-14-2.png](/forum/attachment/4282) ](/forum/attachment/4282 "...12-06-14-2.png") [ ](/forum/attachment/4282?download=1 "...12-06-14-2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ2ODY4LWNhcnQtaXRlbS1jb3VudD90bXBsPW1hcmtkb3du) 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: 86359
- Thank you received: 14296
-
-

14 years 4 months ago [\#54011](#54011) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cart Item Count](/forum/2-general-talk-about-hikashop/46868-cart-item-count#54011 "Hi Nicolas, This question might have been answered previously but I am not finding it. I am new to hikashop and want to display the cart icon on the top of the screen with the number of items in the cart.  I created a custom html module and positioned it on top which takes me to the checkout process but I am unable to display the cart count in that.  Could you please help me with the code snippet which I can use to fulfill this requirement?  Thanks, Lovely Singh")*

If you enter your modification in the main area of the translation file, you will loose it next time your update HikaShop. Instead, you should add it in the "override" area, at the bottom of the popup.

Regarding that error, that's because the permissions of the "languages" folder of your website are not correct. You should try to make it 777 and that should hopefully solve the problem of saving the override file.

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

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

Less More

- Posts: 131
- Thank you received: 3
-
-

14 years 4 months ago [\#54530](#54530) by [michael](/forum/user/4939-michael "View michael's Profile")  Replied by *[michael](/forum/user/4939-michael "View michael's Profile")* on topic *[Re: Cart Item Count](/forum/2-general-talk-about-hikashop/46868-cart-item-count#54530 "Hi Nicolas, This question might have been answered previously but I am not finding it. I am new to hikashop and want to display the cart icon on the top of the screen with the number of items in the cart.  I created a custom html module and positioned it on top which takes me to the checkout process but I am unable to display the cart count in that.  Could you please help me with the code snippet which I can use to fulfill this requirement?  Thanks, Lovely Singh")*

Resolved

Thank you very much again ![:D](/media/kunena/emoticons/1.png ":D")

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

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

Less More

- Posts: 1
- Thank you received: 0
-
-

14 years 3 months ago -  14 years 3 months ago [\#58249](#58249) by [takis](/forum/user/8294-takis "View takis's Profile")  Replied by *[takis](/forum/user/8294-takis "View takis's Profile")* on topic *[Re: Cart Item Count](/forum/2-general-talk-about-hikashop/46868-cart-item-count#58249 "Hi Nicolas, This question might have been answered previously but I am not finding it. I am new to hikashop and want to display the cart icon on the top of the screen with the number of items in the cart.  I created a custom html module and positioned it on top which takes me to the checkout process but I am unable to display the cart count in that.  Could you please help me with the code snippet which I can use to fulfill this requirement?  Thanks, Lovely Singh")*

![:P](/media/kunena/emoticons/14.png ":P") ![B)](/media/kunena/emoticons/9.png "B)") ![B)](/media/kunena/emoticons/9.png "B)") ![B)](/media/kunena/emoticons/9.png "B)") ![B)](/media/kunena/emoticons/9.png "B)") ![B)](/media/kunena/emoticons/9.png "B)")

Last edit: 14 years 3 months ago by [takis](/forum/user/8294-takis "View takis's Profile").

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

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