[with fix]Call to undefined method shopFunctionsF::getComUserOption

Started by leoncarter, November 29, 2014, 09:23:39 AM

Previous topic - Next topic

leoncarter

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

GJC Web Design

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__
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

branahr

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.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/