Let me guess, you’ve got a Joomla/Virtuemart site up, but your visitors aren’t seeing any helpful error messages. Am I right? Say I try and log in with a bogus username, you’d like to see that error message down there.
Username and password do not match or you do not have an account yet.
…but instead you’re just getting a page refresh. Confusing, huh? Well, lucky for you it’s a simple template fix.
- Log into the Joomla admin panel and navigate to “Extensions->Template Manager.”
- Click on the name of your “Default” template (it should be starred).
- Click the “Edit HTML” button in the upper right.
- Add the below code to the template file right above the
<jdoc:include type="component" />
line.
<body> ... <!-- Display Error Messages --> <jdoc:include type="message" /> <!-- End Messages --> <jdoc:include type="component" /> ... </body>
Hi
I have a “strange” problem whereby some people can see Info and Error messages and some cannot.
e.g. Adding an item to the Cart should return:
Info: The product was added to your cart.
I cannot see this message as with many others.
I have tried Firefox and IE8; Windows 7, XP, Linux machines, to no avail.
Is your above solution applicable to my problem?
Why can some see the messages and others not?
Thank You
Eddie
Hey Eddie, if some people are seeing the error messages and others are not, then this is not likely the solution to your problem.
Are you talking about the popup that appears when you add an item to your cart? Is it blank?
Hi Tristan
Yes, the Info popup which appears next to Cart and above the basket.
Also, error messages.
e.g.
A customer logs in, adds an item to the cart, proceeds to to Payment (after Shipping) and chooses to pay by credit card.
Customer inputs no or incorrect card details (e.g. expiry date which is past).
Nothing happens.
The page seems to just return with no error messages.
So, I lose the sale if the customer makes an input error as he is not seeing any message.
Also, the server is not returning any messages. If I look at the source (ctl+u in Firefox) then there is no message for those who cannot see messages.
I know of only one person who is seeing messages and if he looks at the source the message is visible.
So, it cannot be a syle sheet declaration issue.
I am using a customised VM template but have tried switching to the Default with no change.
This problem is irrespective of browser or operating system.
I am stumped.
Best
Eddie
Hey Eddie,
Check the “Limit by IP Address” option in your Virtuemart settings. More info to be had here:
http://forum.virtuemart.net/index.php?topic=61009.msg212693
Let me know if that solves your problem!
Thank you so much!
I searched 5 hours for resolve that problem!
Hi Tristan
That was exactly the problem and solution.
Thanks!
Best
Eddie
Also, the server is not returning any messages. If I look at the source (ctl+u in Firefox) then there is no message for those who cannot see messages.
+1
Thanks for this solution, had the same problem
Instant fix. Thanks for that.
If I add as you said, my template show a duplicated area. Everything that’s appear on the main content , appears on site’s top. But if I remove the code , the success message doesn’t show up because the redirect.
excelente Fix for this issue!!!
i just add this line code in my index.php, but not before the just add in the $layout conditional.
WORKS FINE!
$layout = $tmplTools->getLayout ();
if ($layout) {
echo”;
$tmplTools->display ($layout);
}
THANKS A LOT