Author Topic: Can't make VM 2 show user error messages  (Read 2069 times)

MAtkins

  • Beginner
  • *
  • Posts: 5
Can't make VM 2 show user error messages
« on: December 20, 2012, 01:20:28 am »
I searched and can't find anything on this.

If a user forgets to do something like check the 'terms' checkbox, the cart page just refreshes and does not notify the user as to why it didn't go through.
How can I make it tell the user what they did wrong?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28597
  • Always on vacation
    • Jenkin Hill Internet
Re: Can't make VM 2 show user error messages
« Reply #1 on: December 20, 2012, 10:06:39 am »
Include <jdoc:include type="message" /> in your Joomla template header to allow Joomla to report front end errors
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 4.0.22 10858  J 3.10.11 PHP 8.0.27

MAtkins

  • Beginner
  • *
  • Posts: 5
Re: Can't make VM 2 show user error messages
« Reply #2 on: December 21, 2012, 01:12:51 am »
Well, that helps, sort of.
Is there any way to get a formatted ERROR within the page instead of just text above the header?

I don't want to display messages like 'Product Successfully Added'
I just want errors like 'Email address was not valid', and it'd be nice if it was properly formatted within the shopping cart part of the page.