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

#   Hide cart module if empty

##

- **[recedo](/forum/user/773-recedo "View recedo's Profile")**
- [![recedo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar773.png)](/forum/user/773-recedo "View recedo's Profile") Topic Author
- [ Offline](/forum/user/773-recedo)

Less More

- Posts: 37
- Thank you received: 0
-
-

15 years 9 months ago [\#5644](#5644) by [recedo](/forum/user/773-recedo "View recedo's Profile")  *[Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#5644 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")* was created by *[recedo](/forum/user/773-recedo "View recedo's Profile")*

I would like to request a feature, as touched on in a previous thread.

I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text "Cart is Empty".

My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).

Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.

Thanks
Simon

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2NDQtaGlkZS1jYXJ0LW1vZHVsZS1pZi1lbXB0eT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

15 years 9 months ago [\#5648](#5648) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#5648 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

We will look at adding that in the near future.

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

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

Less More

- Posts: 25
- Thank you received: 4
-
-

15 years 2 months ago [\#23939](#23939) by [maxgag51](/forum/user/2876-maxgag51 "View maxgag51's Profile")  Replied by *[maxgag51](/forum/user/2876-maxgag51 "View maxgag51's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#23939 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

I am also interested in this future feature

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2NDQtaGlkZS1jYXJ0LW1vZHVsZS1pZi1lbXB0eT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

15 years 2 months ago [\#23943](#23943) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#23943 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

Hi,

It's possible now. You can do it like explained on that thread, using Advanced Modules Manager: [ www.hikashop.com/en/support/forum/4-how-...as-something-in.html](http://www.hikashop.com/en/support/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in.html)

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

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

Less More

- Posts: 64
- Thank you received: 0
-
-

14 years 11 months ago [\#29593](#29593) by [boussog1](/forum/user/4519-boussog1 "View boussog1's Profile")  Replied by *[boussog1](/forum/user/4519-boussog1 "View boussog1's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#29593 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

Hello,

I am using the advanced module manager to hide my cart when empty, but it still shows ... Any tips?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2NDQtaGlkZS1jYXJ0LW1vZHVsZS1pZi1lbXB0eT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

14 years 11 months ago [\#29594](#29594) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#29594 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

Did you override the empty message text in your translation file so that there is no text instead of "Your cart is empty" ?
You can do that as explained there:
[ www.hikashop.com/fr/download/languages.html#modify](http://www.hikashop.com/fr/download/languages.html#modify)

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

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

Less More

- Posts: 64
- Thank you received: 0
-
-

14 years 11 months ago [\#29598](#29598) by [boussog1](/forum/user/4519-boussog1 "View boussog1's Profile")  Replied by *[boussog1](/forum/user/4519-boussog1 "View boussog1's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#29598 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

That did it thank-you. Great work btw!

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 8 months ago [\#230033](#230033) by [iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")  Replied by *[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#230033 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

Hi all,
we have gone 4 Years into the future and unfortunately this solution does not work anymore with my version of hikashop and advance module manager pro. I removed the "cart empty message but that does not fix the problem.
I investigated on the nonumbers site (makers of advance module manager) and there is same question answered as you can read here: [ www.nonumber.nl/forum/advancedmodulemanager/9152-hide-if-empty](https://www.nonumber.nl/forum/advancedmodulemanager/9152-hide-if-empty)
or in short: it does only work if no html output is made from the module - and - it need php strings to get rid of the cart if empty.
Unfortunately there seems to be another html output even if i only remove the "cart empty" message within my language strings as my cart still is shown. Hope there will be any chance to get this done in another way - best would be if the minicart himself would disappear with an option toggle ![:-)](/media/kunena/emoticons/9.png ":-)")
thanks in advance for coming back to this thread!
regards
carsten

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 8 months ago [\#230070](#230070) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#230070 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

Hi,

Could you give us a link to one of the page with the issue ?
This will help us to see what could be causing this problem.

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 8 months ago [\#230274](#230274) by [iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")  Replied by *[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#230274 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

Sure: you can see it here:
dev.iq-guru.com. Find the module in the menubar position located. And yes - that is not a menu item it is a module just in that position.
Thanks in advance
carsten

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 8 months ago [\#230306](#230306) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#230306 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

Hi,

I was thinking that your module was displayed as a common module, so on a side of the website.
In your case, it seems to be more specific as it is on the menu and displayed on hover.
So not a default Joomla comportment, but displayed via your template or another component and that's why it is not hiding as it should by default.

You should contact the menu extension provider or the template editor, or add some javascript to hide the menu if the content is empty thanks to code like: Code:

if($('.cartmodule div').html() == ''){ $('.cartmodule').hide(); }

(it require to add a custom class to the module)

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 8 months ago [\#230903](#230903) by [iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")  Replied by *[iq-guru](/forum/user/40612-iq-guru "View iq-guru's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#230903 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

Hi Xavier,
thanks for the possible solution. As it is not possible to get this support from the template provider i now tried to move the cart module to sidebar a position but still have the same result - if the cart is emty and i remove the string within my translation still a block is shown with no content even it should not be there ![:-(](/media/kunena/emoticons/4.png ":-(")
So i´d like to ask you again for support on this. YOu can check it here (secondd module on the right side):
[ dev.iq-guru.com/angebote/alle/alle-online-kurse](http://dev.iq-guru.com/angebote/alle/alle-online-kurse)
Thanks in advance
carsten

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2NDQtaGlkZS1jYXJ0LW1vZHVsZS1pZi1lbXB0eT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

10 years 8 months ago [\#230919](#230919) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Hide cart module if empty](/forum/2-general-talk-about-hikashop/5644-hide-cart-module-if-empty#230919 "I would like to request a feature, as touched on in a previous thread.  I would like an option in the cart module options to allow you to hide the cart module if the cart is empty - instead of having the cart module showing with the text &quot;Cart is Empty&quot;.  My reasons for this is that the shop is a small part of my site and will probably only appeal to a minority of users. If the user has items in their cart I want it to show in a prominent position in the sidebar of EVERY page to remind them to checkout - however I don't want a pretty much blank module displayed to everyone else (takes up space that could be better used).  Reading through previous posts I think I can hide the content of the module however the module itself will be displayed, therefore the header, container etc will be displayed.  Thanks Simon")*

Hi,

That DIV comes from the template... It's really something the template provider should help with.

But you can try by adding such javascript in the template :
if($('.uk-panel-box').html() == ''){
$('.uk-panel-box').hide();
}

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

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

[](#top)
