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

#   Show cart module only when it has something in

##

- **[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)
-

13 years 9 months ago [\#87370](#87370) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#87370 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

I think that a solution could be to add some Javascript in the view "product / cart".
Try to use the following Javascript if there is no products in the cart:
Code:

&lt;script type="text/javascript"&gt; var cart_module = document.getElementById('hikashop_cart_module'); var parent = cart_module.getParent(); parent.style.display='none'; &lt;/script&gt;

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

- **[erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")**
- [![erik&#95;jung's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")
- [ Offline](/forum/user/11736-erik-jung)

Less More

- Posts: 16
- Thank you received: 1
-
-

13 years 9 months ago [\#87389](#87389) by [erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")  Replied by *[erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#87389 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

The script does get rid of the empty cart but it also removes it when there's an item in it. So not quite there.

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

13 years 9 months ago [\#87469](#87469) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#87469 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

> if there is no products in the cart:

You can add the previous code in the php check like: Code:

&lt;?php if(empty($this-&gt;rows)){ ?&gt; &lt;script type="text/javascript"&gt; var cart_module = document.getElementById('hikashop_cart_module'); var parent = cart_module.getParent(); parent.style.display='none'; &lt;/script&gt; &lt;?php } ?&gt;

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

- **[erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")**
- [![erik&#95;jung's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")
- [ Offline](/forum/user/11736-erik-jung)

Less More

- Posts: 16
- Thank you received: 1
-
-

13 years 9 months ago [\#88425](#88425) by [erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")  Replied by *[erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#88425 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

Silly me. I understand now and it works great. Just one last thing, is it possible to show the module title only when there's an item in it?

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

13 years 9 months ago [\#88556](#88556) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#88556 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

This code should hide the module title too when empty cart.

You can try to add a suffix to the module in the Joomla option, set something like "-cart".
Then use the code: Code:

&lt;?php if(empty($this-&gt;rows)){ ?&gt; &lt;script type="text/javascript"&gt; var cart_module = document.getElementById('moduletable-cart'); cart_module.style.display='none'; &lt;/script&gt; &lt;?php } ?&gt;

Replace "moduletable-cart" by the class of your module, you can find it with, for example, firebug.

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

- **[erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")**
- [![erik&#95;jung's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")
- [ Offline](/forum/user/11736-erik-jung)

Less More

- Posts: 16
- Thank you received: 1
-
-

13 years 9 months ago [\#88573](#88573) by [erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")  Replied by *[erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#88573 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

Still no luck. I've attached the code for cart.php. Maybe I'm doing something wrong.
*This attachment is hidden for guests.
Please log in or register to see it.*

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

13 years 9 months ago [\#88632](#88632) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#88632 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

You don't use the good id.
Could you give me a backend access via mp ?

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

13 years 8 months ago [\#92472](#92472) by [gili](/forum/user/6876-gili "View gili's Profile")  Replied by *[gili](/forum/user/6876-gili "View gili's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#92472 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

hello
i m trying to do the same thing and i have the same problem
could you help please ?

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

13 years 8 months ago [\#92706](#92706) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#92706 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

Hi,

Well the solution is the same. You shoudl be able to do it with AMM. Otherwise, the code modification proposed by Xavier is also a solution. Just do as explained in the previous messages.

The following user(s) said Thank You: [gili](/forum/user/6876-gili "View gili's Profile")

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

13 years 8 months ago [\#92762](#92762) by [gili](/forum/user/6876-gili "View gili's Profile")  Replied by *[gili](/forum/user/6876-gili "View gili's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#92762 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

hello
i tried to use xaviers code but it does not hide the title of module

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

13 years 8 months ago [\#92867](#92867) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#92867 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

Could you give us a link to your website ?

The following user(s) said Thank You: [gili](/forum/user/6876-gili "View gili's Profile")

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

13 years 8 months ago [\#93057](#93057) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#93057 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

Solved.

The way to do that is:
- In the Joomla cart module options, at the end of the "Module Class Suffix" option add : Code:

" id="cart_module"

- At the end of the view "product / cart" add the code: Code:

&lt;?php if(empty($this-&gt;rows)){ ?&gt; &lt;script type="text/javascript"&gt; var cart_module = document.getElementById('cart_module'); cart_module.style.display='none'; &lt;/script&gt; &lt;?php } ?&gt;

The following user(s) said Thank You: [gili](/forum/user/6876-gili "View gili's Profile")

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

13 years 8 months ago [\#93660](#93660) by [gili](/forum/user/6876-gili "View gili's Profile")  Replied by *[gili](/forum/user/6876-gili "View gili's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#93660 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

hello
after this script
when i click on the categories (Κατηγορίες) on one of the subcategories the module disappears and only the title remains
helppp !!!! ![:)](/media/kunena/emoticons/3.png ":)")

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

13 years 8 months ago [\#93857](#93857) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#93857 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

Hi,

The problem don't come from the script.
It's due to the parameters of the module "Κατηγορίες", it display content depending on the category displayed.
If the category have no sub categories so it's empty.

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

13 years 8 months ago [\#93870](#93870) by [gili](/forum/user/6876-gili "View gili's Profile")  Replied by *[gili](/forum/user/6876-gili "View gili's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#93870 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

hello
i m not sure i understood that. could u please tell me the steps to fix it ????
regards

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

13 years 8 months ago [\#94032](#94032) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#94032 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

The solution of Xavier won't hide the title of the module.
If you don't want that, you should use the solution with AMM.

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

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

Less More

- Posts: 51
- Thank you received: 0
-
-

13 years 8 months ago [\#94113](#94113) by [gili](/forum/user/6876-gili "View gili's Profile")  Replied by *[gili](/forum/user/6876-gili "View gili's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#94113 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

hello
what xavier did and said to me worked perfectly to the module i wanted
the problem is to another module so i asked whats wrong with the other one and how to fix it !
regards

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

13 years 8 months ago [\#94456](#94456) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#94456 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

Ah ok, I had read too fast.
That's because you have the "Synchronize with currently displayed item when possible" turned on in the hikashop options of your module. You should turn off that option.

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

- **[erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")**
- [![erik&#95;jung's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")
- [ Offline](/forum/user/11736-erik-jung)

Less More

- Posts: 16
- Thank you received: 1
-
-

13 years 7 months ago [\#97117](#97117) by [erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")  Replied by *[erik\_jung](/forum/user/11736-erik-jung "View erik&#95;jung's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#97117 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

Hello Xavier,

I have tried your last solution with the Module Class Suffix and Product/Cart and it does hide the cart when empty. However the problem is that when you add an item to the cart, the cart doesn't show up. It only shows up once you've refreshed the page.

Can you help?

Thanks
Erik

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

13 years 7 months ago [\#97307](#97307) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Show cart module only when it has something in](/forum/4-how-to/6189-show-cart-module-only-when-it-has-something-in?start=20#97307 "How do you configure the cart module to display only when a product has been added?  Also can the cart be hidden during the checkout sequence.  Also the content of the checkout extends beyond the width of the centre colum on my template - most fits but the addresses seem too wide.  The semi developed site can be seen on the temporary server at:   tiger.directrouter.co.uk/~clinitas/  By the way I think you have done a great job with this - I don't really need the extra features of the paid for versions but will upgrade anyways when the site is sorted to support the project.")*

Hi,

Do you have the latest version of HikaShop ?
Can you try to change the value for the option "Use AJAX when possible for add to cart buttons", option in Config &gt; Main &gt; Advanced settings.

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

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