News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Call to undefined method VirtueMartCart::setupAddressFieldsForCart()

Started by joggel, March 25, 2020, 18:38:52 PM

Previous topic - Next topic

joggel

after updating to joomla 3.9.16 / vm 3.6.10 i get the following error when I try to edit adress in the shoppinc cart.

Call to undefined method VirtueMartCart::setupAddressFieldsForCart()

I already tried updating template as described  here http://forum.virtuemart.net/index.php?topic=141196.0   - with no success..

can anybody help?

joggel

and here is my call stack:

Call stack
#   Function   Location
1   ()   JROOT/components/com_virtuemart/views/user/view.html.php:110
2   VirtuemartViewUser->display()   JROOT/components/com_virtuemart/controllers/user.php:102
3   VirtueMartControllerUser->editAddressCart()   JROOT/libraries/src/MVC/Controller/BaseController.php:710
4   Joomla\CMS\MVC\Controller\BaseController->execute()   JROOT/components/com_virtuemart/virtuemart.php:120
5   require_once()   JROOT/libraries/src/Component/ComponentHelper.php:402
6   Joomla\CMS\Component\ComponentHelper::executeComponent()   JROOT/libraries/src/Component/ComponentHelper.php:377
7   Joomla\CMS\Component\ComponentHelper::renderComponent()   JROOT/libraries/src/Application/SiteApplication.php:194
8   Joomla\CMS\Application\SiteApplication->dispatch()   JROOT/libraries/src/Application/SiteApplication.php:233
9   Joomla\CMS\Application\SiteApplication->doExecute()   JROOT/libraries/src/Application/CMSApplication.php:196
10   Joomla\CMS\Application\CMSApplication->execute()   JROOT/index.php:49

GJC Web Design

Is this to do with no menu set for shopper  VirtueMart » Account Maintenance?
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

joggel

I can't find such an option in VM Configuration? Where is it?

GJC Web Design

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

joggel

I tried adding a separate menu with no success - still got the same error..

GJC Web Design

In com_virtuemart.3.6.10.10211  the function setupAddressFieldsForCart() exists in the cart helper and is called correctly form /views/user/view.html.php line 110

so u need to do a bit of code digging and research in your install
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

Studio 42

In last betas, if you dont set a Joomla menu link to virtuemart user view, he crash.

AH

Please can you explain your test studio42.

I tested without any user menu links V3.6.11++

It does not crash when I edit/save shipping address in cart

Regards
A

Joomla 4.4.5
php 8.1

Studio 42

i had the problem with 3.6.10.1410
because
$this->params->get('showUserShopperGrp',1);
Params are not set, if you have no menu.
I dont know if this is the case with 3.6.11, but he use 3.6.10
Quote from: joggel on March 25, 2020, 18:38:52 PM
after updating to joomla 3.9.16 / vm 3.6.10 i get the following error when I try to edit adress in the shoppinc cart.

Call to undefined method VirtueMartCart::setupAddressFieldsForCart()

I already tried updating template as described  here http://forum.virtuemart.net/index.php?topic=141196.0   - with no success..

can anybody help?
Then it's possible he use a lower release as me.

AH

Thanks for the clarification
QuoteIn last betas

So not the last betas - but some other betas that have now been adjusted so the problem is not occuring
Regards
A

Joomla 4.4.5
php 8.1

GJC Web Design

QuoteIs this to do with no menu set for shopper  VirtueMart » Account Maintenance?

but he's saying

QuoteI tried adding a separate menu with no success - still got the same error..
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