Author Topic: Can't make VM 2 show user error messages  (Read 1884 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: 28307
  • 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 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

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.