VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: callum on April 24, 2012, 04:16:22 AM

Title: Double system message
Post by: callum on April 24, 2012, 04:16:22 AM
Hi there,
I have recently posted another error I have found with my virtuemart (http://forum.virtuemart.net/index.php?topic=101760.0)

this is a seperate issue however

I keep getting double system or info messages at the top of the cart page. again I have seen a few posts regarding this but I cant seem to find a fix.

here a few images I took of the double system messages

(http://img820.imageshack.us/img820/7366/11904203.png) (http://imageshack.us/photo/my-images/820/11904203.png/)


(http://img33.imageshack.us/img33/3881/83392200.png) (http://imageshack.us/photo/my-images/33/83392200.png/)

any help would be awesome,
Thanks
Title: Re: Double system message
Post by: teobgeno on April 24, 2012, 05:03:16 AM
check this http://forum.virtuemart.net/index.php?topic=101317.0
Title: Re: Double system message
Post by: callum on April 24, 2012, 05:24:37 AM
Yeah checked that :(

I dont use USPS Plugin i only use the one page checkout and i cant seem to find in that thread any posts displaying how to fix it regarding the onepage checkout.

Title: Re: Double system message
Post by: gjrweb on April 24, 2012, 12:07:37 PM
Same problem here, not using any USPS plugins...

Check our Virtuemart 2 shop here: www.tjoelup.com
Title: Re: Double system message
Post by: teobgeno on April 24, 2012, 16:27:16 PM
at components/com_virtuemart/controllers/cart.php line 76-79


if ($cart->add($virtuemart_product_ids,$success)) {
$msg = JText::_('COM_VIRTUEMART_PRODUCT_ADDED_SUCCESSFULLY');
$mainframe->enqueueMessage($msg);
$type = '';



If you look some lines below there is a $mainframe->enqueueMessage($msg); also at line 90 and that is why the duplicate system message.So there is no need for the first output to exist .Comment line 78 and it will be ok.Check below


if ($cart->add($virtuemart_product_ids,$success)) {
$msg = JText::_('COM_VIRTUEMART_PRODUCT_ADDED_SUCCESSFULLY');
//$mainframe->enqueueMessage($msg);
$type = '';

Title: Re: Double system message
Post by: callum on April 26, 2012, 00:09:16 AM
thanks for the post. I tried this and still showing up.

maybe if you attach your cart.php and ill upload it and see what happens?

Thanks,
Title: Re: Double system message
Post by: siobhano on August 24, 2012, 19:17:00 PM
Was there a resolution found for this error of duplicate system info msgs on clicking cart confirm ? I am seeing the same problem in VM 2.0.10- one msg is empty ie just says "info" , the other says "message sent to customer" which is the message one would expect on cart confirm. How do I get rid of the redundant empty message. Not seeing the duplicate code mentioned above in cart.php. Any ideas anyone ?
Title: Re: Double system message
Post by: Milbo on August 24, 2012, 21:05:40 PM
It is not a doubled message, it is one message.
The problem is the language string. I must ask the translators why they used it. I think it should be span and not a div, because the div is making a new line.
<div class='componentheading'>Registration Complete!</div>
Title: Re: Double system message
Post by: siobhano on August 25, 2012, 05:45:08 AM
Thanks for explaining this
Title: Re: Double system message
Post by: Robert_ITMan on April 19, 2014, 01:54:52 AM
This is over 2 years old and is now an issue again in VM 2.6.0