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

#   Empty cart message

##

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

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

15 years 4 months ago [\#18806](#18806) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  *[Empty cart message](/forum/2-general-talk-about-hikashop/18806-empty-cart-message#18806 "Add to product cart, go to checkout, delete product from cart. Returns to main page with empty cart message  Is it possible to have an option which disables the empty cart message please - our main shop page shows the cart module which says empty, so don't need the message twice.  See screenshot.")* was created by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")*

Add to product cart, go to checkout, delete product from cart.
Returns to main page with empty cart message

Is it possible to have an option which disables the empty cart message please - our main shop page shows the cart module which says empty, so don't need the message twice.

See screenshot.  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/empty_cart.JPG) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/empty_cart.JPG "&#91;img")

-

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

15 years 4 months ago [\#18820](#18820) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty cart message](/forum/2-general-talk-about-hikashop/18806-empty-cart-message#18820 "Add to product cart, go to checkout, delete product from cart. Returns to main page with empty cart message  Is it possible to have an option which disables the empty cart message please - our main shop page shows the cart module which says empty, so don't need the message twice.  See screenshot.")*

There is an option in the cart module to change the cart empty message so you should be able to remove that one. You could also enter the message in that option and then change the translation of the other one CART_EMPTY to remove it. That way, you would have the message in the cart module and not on the page.

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

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

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

15 years 4 months ago [\#18870](#18870) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  Replied by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")* on topic *[Re: Empty cart message](/forum/2-general-talk-about-hikashop/18806-empty-cart-message#18870 "Add to product cart, go to checkout, delete product from cart. Returns to main page with empty cart message  Is it possible to have an option which disables the empty cart message please - our main shop page shows the cart module which says empty, so don't need the message twice.  See screenshot.")*

The empty cart message override in the module did not appear to work.

In the language override I set: Code:

CART_EMPTY="" MY_CART_EMPTY="The cart is empty"

Then had to modify the product cart.php template. Code:

$desc = $this-&gt;params-&gt;get('comp_description'); if(empty($desc)){ $this-&gt;params-&gt;set('comp_description',JText::_('MY_CART_EMPTY')); }

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

15 years 4 months ago [\#18872](#18872) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty cart message](/forum/2-general-talk-about-hikashop/18806-empty-cart-message#18872 "Add to product cart, go to checkout, delete product from cart. Returns to main page with empty cart message  Is it possible to have an option which disables the empty cart message please - our main shop page shows the cart module which says empty, so don't need the message twice.  See screenshot.")*

Mmm. I had a look at the code. It should be msg instead of comp_description. Could you try with that (3 places in that file)?

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

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

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

15 years 4 months ago [\#18875](#18875) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  Replied by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")* on topic *[Re: Empty cart message](/forum/2-general-talk-about-hikashop/18806-empty-cart-message#18875 "Add to product cart, go to checkout, delete product from cart. Returns to main page with empty cart message  Is it possible to have an option which disables the empty cart message please - our main shop page shows the cart module which says empty, so don't need the message twice.  See screenshot.")*

That fixed it, thanks.
I have got rid of MY_CART_EMPTY.

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

15 years 4 months ago [\#18876](#18876) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty cart message](/forum/2-general-talk-about-hikashop/18806-empty-cart-message#18876 "Add to product cart, go to checkout, delete product from cart. Returns to main page with empty cart message  Is it possible to have an option which disables the empty cart message please - our main shop page shows the cart module which says empty, so don't need the message twice.  See screenshot.")*

great. We'll add that to next release !

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

14 years 10 months ago [\#33044](#33044) by [alex\_ciss](/forum/user/4848-alex-ciss "View alex&#95;ciss's Profile")  Replied by *[alex\_ciss](/forum/user/4848-alex-ciss "View alex&#95;ciss's Profile")* on topic *[Re: Empty cart message](/forum/2-general-talk-about-hikashop/18806-empty-cart-message#33044 "Add to product cart, go to checkout, delete product from cart. Returns to main page with empty cart message  Is it possible to have an option which disables the empty cart message please - our main shop page shows the cart module which says empty, so don't need the message twice.  See screenshot.")*

Hi

Have had a read through of posts on this. I'd like to do a similar thing - completely remove the message that appears on the page: "the cart is empty". I have options set to show mini cart all the time so no need for message really. Could you advise - didn't really understand the instructions above.

Thanks for your help

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

14 years 10 months ago [\#33061](#33061) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty cart message](/forum/2-general-talk-about-hikashop/18806-empty-cart-message#33061 "Add to product cart, go to checkout, delete product from cart. Returns to main page with empty cart message  Is it possible to have an option which disables the empty cart message please - our main shop page shows the cart module which says empty, so don't need the message twice.  See screenshot.")*

Hi,

To remove the message, you can just override its translation, as any text in HikaShop:
[ www.hikashop.com/en/download/languages.html#modify](http://www.hikashop.com/en/download/languages.html#modify)

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

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

Less More

- Posts: 34
- Thank you received: 1
-
-

13 years 2 months ago [\#117094](#117094) by [ximbo](/forum/user/25614-ximbo "View ximbo's Profile")  Replied by *[ximbo](/forum/user/25614-ximbo "View ximbo's Profile")* on topic *[Empty cart message](/forum/2-general-talk-about-hikashop/18806-empty-cart-message#117094 "Add to product cart, go to checkout, delete product from cart. Returns to main page with empty cart message  Is it possible to have an option which disables the empty cart message please - our main shop page shows the cart module which says empty, so don't need the message twice.  See screenshot.")*

Joomla 3.1, hikashop 2.2

Info that may prove useful to others - another way of editing this message is via the products / cart.php override, especially if you want to add additional html markup or customisation rather than just removing the message.
Code:

if($cart_type == 'wishlist'){ ... } else { $empty= &lt;edit this to customise&gt; }

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

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

[](#top)
