News:

Support the VirtueMart project and become a member

Main Menu

Double system message

Started by callum, April 24, 2012, 04:16:22 AM

Previous topic - Next topic

callum

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






any help would be awesome,
Thanks


callum

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.


gjrweb

#3
Same problem here, not using any USPS plugins...

Check our Virtuemart 2 shop here: www.tjoelup.com
[GJ-R] Webdevelopment & E-Commerce Expert

teobgeno

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 = '';


callum

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,

siobhano

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 ?

Milbo

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>
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

siobhano


Robert_ITMan

This is over 2 years old and is now an issue again in VM 2.6.0
WEBSITES @ OURFINGERTIPS
manage > develop > market > repeat

Save a lot of time and money when focused on building a website that works with marketing efforts to get more leads and sales from visitors.

www.ourfingertips.com