Hi,
I created in Shopper Fields a field named 'Test' and I'm trying to do something like:
$message = "example message";
if ($this->user->userFields->Test['value']=="30") echo "<script type='text/javascript'>alert('$message');</script>";?>
But it doesn't work :-\
I want to add this code in shopping cart or somewhere else..
Does anyone know?
Thank you very much.
Hi,
Sorry but your explain are a little short.
When do you want display this alert?
When the user display the form, you can only check for the value by javascript not PHP.
If you want to verify it after, you need to write your own plugin(or modify Vm core)