VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: leoncarter on November 29, 2014, 09:23:39 AM

Title: [with fix]Call to undefined method shopFunctionsF::getComUserOption
Post by: leoncarter on November 29, 2014, 09:23:39 AM
I have successfully upgraded Virtual Mart 3 in joomla 2.5

When i select cart after adding products i am getting following error

I am already registered
Continue Shopping   

Fatal error: Call to undefined method shopFunctionsF::getComUserOption() in /data/web/e37025/html/templates/theme327/html/com_virtuemart/user/login.php on line 24


I am using custom theme, i am very new to joomla and virtual mart please help
Title: Re: Call to undefined method shopFunctionsF::getComUserOption
Post by: GJC Web Design on November 29, 2014, 11:05:39 AM
Yes -

Quote/templates/theme327/html/com_virtuemart/user/login.php

this is an over ride in your template - try renaming it to /templates/theme327/html/com_virtuemart/user/login__.php so the native VM file is uded
but sounds like your template isn't VM3 compatible

If you have further errors try renaming the whole /templates/theme327/html/com_virtuemart folder to something else so the native VM template is used
i.e /templates/theme327/html/com_virtuemart__
Title: Re: Call to undefined method shopFunctionsF::getComUserOption
Post by: branahr on October 28, 2015, 08:16:38 AM
Quote from: leoncarter on November 29, 2014, 09:23:39 AM
I have successfully upgraded Virtual Mart 3 in joomla 2.5

When i select cart after adding products i am getting following error

I am already registered
Continue Shopping   

Fatal error: Call to undefined method shopFunctionsF::getComUserOption() in /data/web/e37025/html/templates/theme327/html/com_virtuemart/user/login.php on line 24


I am using custom theme, i am very new to joomla and virtual mart please help

Old topic, but I believe many people get this error when use VM 3.0 with old template. Function getComUserOption() no longer exists in VM 3.0, so what you need to do is simply change shopFunctionsF::getComUserOption() to "com_users" in your template override (in this case in /data/web/e37025/html/templates/theme327/html/com_virtuemart/user/login.php on line 24).
So if you have something like
$comUserOption=shopfunctionsF::getComUserOption();
change this line to
$comUserOption="com_users";
If this is the only problem, that's it.
Title: Re: Call to undefined method shopFunctionsF::getComUserOption
Post by: Milbo on October 29, 2015, 22:18:34 PM
Thank you for this good explanation