I don’t know how much time i spent on this one. since the virtuemart has got a useless forum. Well, the problem is, when somebody shops at your virtuemart, fills up the cart with a few items and try to checkout.. Now when he/she tries to login it always ends up with “You are not authorized to view this page” I can see hell lot of people searching for the solution. here i got one, but i don’t know how much security alarms i rang up. just trying to save time of developers.

Solution:

search for

“$validate = vmSpoofValue(1);”

and Replace it with

“$validate = josSpoofValue(1);”

in the file named “checkout.login_form.php” located at;

yoursite.. /administrator/components/com_virtuemart/html