Author Topic: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()  (Read 645 times)

joggel

  • Beginner
  • *
  • Posts: 4
  • A beginner
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

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #1 on: March 26, 2020, 11:37:26 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9496
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #2 on: March 26, 2020, 11:41:45 am »
Is this to do with no menu set for shopper  VirtueMart » Account Maintenance?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

joggel

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #3 on: March 26, 2020, 12:28:36 pm »
I can't find such an option in VM Configuration? Where is it?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9496
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #4 on: March 26, 2020, 12:33:33 pm »
Joomla menus -> VM
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

joggel

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #5 on: March 26, 2020, 15:42:30 pm »
I tried adding a separate menu with no success - still got the same error..

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9496
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #6 on: March 26, 2020, 17:13:55 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4246
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #7 on: March 27, 2020, 09:17:47 am »
In last betas, if you dont set a Joomla menu link to virtuemart user view, he crash.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3083
  • VirtueMart Version: 3.6.11
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #8 on: March 27, 2020, 09:37:38 am »
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 3.9.16
php 7.3

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4246
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #9 on: March 27, 2020, 09:51:10 am »
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
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3083
  • VirtueMart Version: 3.6.11
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #10 on: March 27, 2020, 13:47:25 pm »
Thanks for the clarification
Quote
In 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 3.9.16
php 7.3

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9496
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Call to undefined method VirtueMartCart::setupAddressFieldsForCart()
« Reply #11 on: March 27, 2020, 15:22:44 pm »
Quote
Is this to do with no menu set for shopper  VirtueMart » Account Maintenance?

but he's saying

Quote
I tried adding a separate menu with no success - still got the same error..
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation