Cart is empty message on adding first product

  • Posts: 34
  • Thank you received: 1
11 years 3 months ago #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 "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



-- url of the page with the problem -- : 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: 11 years 3 months ago by ximbo. Reason: added screenshot

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 3 months ago #117215

Hi,

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

Thanks,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 1
11 years 3 months ago #117222

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

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #117354

Hi,

From what I can see this is not the case:



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
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.

Attachments:
The following user(s) said Thank You: ximbo

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 1
11 years 3 months ago #117359

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 or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #117533

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:

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

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 1
11 years 3 months ago #117569

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 or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #117576

You would have to remove the two occurrences of the code

, JText::_('CART_EMPTY')
in the file components/com_hikashop/controllers/checkout.php

The following user(s) said Thank You: ximbo

Please Log in or Create an account to join the conversation.

  • Posts: 34
  • Thank you received: 1
11 years 3 months ago #117948

Perfect that works!

Please Log in or Create an account to join the conversation.

Time to create page: 0.094 seconds
Powered by Kunena Forum