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

#   Cart is empty message on adding first product

##

- **[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") Topic Author
- [ Offline](/forum/user/25614-ximbo)

Less More

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

13 years 3 months ago -  13 years 3 months ago [\#117095](#117095) by [ximbo](/forum/user/25614-ximbo "View ximbo's Profile")  *[Cart is empty message on adding first product](/forum/2-general-talk-about-hikashop/860636-cart-is-empty-message-on-adding-first-product#117095 "Hi - I'm getting an issue with the popup when adding my first item to the cart. I've got it set so that when &quot;add to cart&quot; is pressed, the customer remains on the same page whilst the popup displays...")* was created by *[ximbo](/forum/user/25614-ximbo "View ximbo's Profile")*

Hi - I'm getting an issue with the popup when adding my first item to the cart. I've got it set so that when "add to cart" is pressed, the customer remains on the same page whilst the popup displays and the cart is updated via AJAX.

When the first item is added I get a message in the popup "Message The cart is empty", first, followed by "Product successfully added to the cart", then the continue shopping and checkout buttons.

I don't really want the message saying that the cart is empty to display, since I've just added an item to the cart - any thoughts?

Here's the screenshot

image missing http://i42.tinypic.com/mcvsav.png

-- url of the page with the problem -- : [ audleymotors.smsidat.com](http://audleymotors.smsidat.com)
-- HikaShop version -- : 2.2
-- Joomla version -- : 3.1
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Chrome Version 28.0.1500.95 m

Last edit: 13 years 3 months ago by [ximbo](/forum/user/25614-ximbo "View ximbo's Profile"). Reason: added screenshot

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDYzNi1jYXJ0LWlzLWVtcHR5LW1lc3NhZ2Utb24tYWRkaW5nLWZpcnN0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#117215](#117215) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cart is empty message on adding first product](/forum/2-general-talk-about-hikashop/860636-cart-is-empty-message-on-adding-first-product#117215 "Hi - I'm getting an issue with the popup when adding my first item to the cart. I've got it set so that when &quot;add to cart&quot; is pressed, the customer remains on the same page whilst the popup displays...")*

Hi,

Do you have a link of a product ?
So we could try to reproduce you problem.

Thanks,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDYzNi1jYXJ0LWlzLWVtcHR5LW1lc3NhZ2Utb24tYWRkaW5nLWZpcnN0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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") Topic Author
- [ Offline](/forum/user/25614-ximbo)

Less More

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

13 years 3 months ago [\#117222](#117222) by [ximbo](/forum/user/25614-ximbo "View ximbo's Profile")  Replied by *[ximbo](/forum/user/25614-ximbo "View ximbo's Profile")* on topic *[Cart is empty message on adding first product](/forum/2-general-talk-about-hikashop/860636-cart-is-empty-message-on-adding-first-product#117222 "Hi - I'm getting an issue with the popup when adding my first item to the cart. I've got it set so that when &quot;add to cart&quot; is pressed, the customer remains on the same page whilst the popup displays...")*

Hi - sorry forgot to add the url to that, it's [ audleymotors.smsidat.com/accessories](http://audleymotors.smsidat.com/accessories) - happens when you add to a cart that is empty to begin with.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDYzNi1jYXJ0LWlzLWVtcHR5LW1lc3NhZ2Utb24tYWRkaW5nLWZpcnN0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

13 years 2 months ago [\#117354](#117354) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart is empty message on adding first product](/forum/2-general-talk-about-hikashop/860636-cart-is-empty-message-on-adding-first-product#117354 "Hi - I'm getting an issue with the popup when adding my first item to the cart. I've got it set so that when &quot;add to cart&quot; is pressed, the customer remains on the same page whilst the popup displays...")*

Hi,

From what I can see this is not the case:
[ ![h5b18aa2.png](/forum/attachment/11557) ](/forum/attachment/11557 "h5b18aa2.png")

It only happens when the cart is emptied on the cart and then you add a product again.
That's because your template is not displaying messages on its main page:
[ www.hikashop.com/support/support/documen...tibility-issues.html](http://www.hikashop.com/support/support/documentation/61-hikashop-compatibility-issues.html)
It's only displaying them in popup mode (in the component.php file).

The best is to configure your template to display messages on its main page but you can also remove the display of messages from the popup mode.

- [ ![h5b18aa2.png](/forum/attachment/11557) ](/forum/attachment/11557 "h5b18aa2.png") [ ](/forum/attachment/11557?download=1 "h5b18aa2.png")

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDYzNi1jYXJ0LWlzLWVtcHR5LW1lc3NhZ2Utb24tYWRkaW5nLWZpcnN0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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") Topic Author
- [ Offline](/forum/user/25614-ximbo)

Less More

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

13 years 2 months ago [\#117359](#117359) by [ximbo](/forum/user/25614-ximbo "View ximbo's Profile")  Replied by *[ximbo](/forum/user/25614-ximbo "View ximbo's Profile")* on topic *[Cart is empty message on adding first product](/forum/2-general-talk-about-hikashop/860636-cart-is-empty-message-on-adding-first-product#117359 "Hi - I'm getting an issue with the popup when adding my first item to the cart. I've got it set so that when &quot;add to cart&quot; is pressed, the customer remains on the same page whilst the popup displays...")*

Ah I see - I did have messages disabled on the template, and just re-enabled, and now that sorted out the issue. However, I still don't want the message for the cart being empty being displayed at all - is there a way to de-activate it or over-ride it?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDYzNi1jYXJ0LWlzLWVtcHR5LW1lc3NhZ2Utb24tYWRkaW5nLWZpcnN0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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 2 months ago [\#117533](#117533) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Cart is empty message on adding first product](/forum/2-general-talk-about-hikashop/860636-cart-is-empty-message-on-adding-first-product#117533 "Hi - I'm getting an issue with the popup when adding my first item to the cart. I've got it set so that when &quot;add to cart&quot; is pressed, the customer remains on the same page whilst the popup displays...")*

Hi,

This come certainly from the view "product / cart" thanks to edit that view in order to remove the message.
It should come from the code: Code:

if(empty($desc) &amp;&amp; $desc != '0'){ $this-&gt;params-&gt;set('msg',$emptyText); }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDYzNi1jYXJ0LWlzLWVtcHR5LW1lc3NhZ2Utb24tYWRkaW5nLWZpcnN0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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") Topic Author
- [ Offline](/forum/user/25614-ximbo)

Less More

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

13 years 2 months ago [\#117569](#117569) by [ximbo](/forum/user/25614-ximbo "View ximbo's Profile")  Replied by *[ximbo](/forum/user/25614-ximbo "View ximbo's Profile")* on topic *[Cart is empty message on adding first product](/forum/2-general-talk-about-hikashop/860636-cart-is-empty-message-on-adding-first-product#117569 "Hi - I'm getting an issue with the popup when adding my first item to the cart. I've got it set so that when &quot;add to cart&quot; is pressed, the customer remains on the same page whilst the popup displays...")*

That's the message when the cart in empty in the cart module - what about the one that shows up in the joomla messaging system? How would I stop the message appearing there?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDYzNi1jYXJ0LWlzLWVtcHR5LW1lc3NhZ2Utb24tYWRkaW5nLWZpcnN0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

13 years 2 months ago [\#117576](#117576) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Cart is empty message on adding first product](/forum/2-general-talk-about-hikashop/860636-cart-is-empty-message-on-adding-first-product#117576 "Hi - I'm getting an issue with the popup when adding my first item to the cart. I've got it set so that when &quot;add to cart&quot; is pressed, the customer remains on the same page whilst the popup displays...")*

You would have to remove the two occurrences of the code Code:

, JText::_('CART_EMPTY')

in the file components/com_hikashop/controllers/checkout.php

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDYzNi1jYXJ0LWlzLWVtcHR5LW1lc3NhZ2Utb24tYWRkaW5nLWZpcnN0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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") Topic Author
- [ Offline](/forum/user/25614-ximbo)

Less More

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

13 years 2 months ago [\#117948](#117948) by [ximbo](/forum/user/25614-ximbo "View ximbo's Profile")  Replied by *[ximbo](/forum/user/25614-ximbo "View ximbo's Profile")* on topic *[Cart is empty message on adding first product](/forum/2-general-talk-about-hikashop/860636-cart-is-empty-message-on-adding-first-product#117948 "Hi - I'm getting an issue with the popup when adding my first item to the cart. I've got it set so that when &quot;add to cart&quot; is pressed, the customer remains on the same page whilst the popup displays...")*

Perfect that works!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MDYzNi1jYXJ0LWlzLWVtcHR5LW1lc3NhZ2Utb24tYWRkaW5nLWZpcnN0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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)
