Author Topic: Adressfields in cart not showing  (Read 560 times)

Otto0815

  • Jr. Member
  • **
  • Posts: 194
Adressfields in cart not showing
« on: November 26, 2019, 14:24:06 pm »
Hi there,

i'm using Joomla 3.9.13 and Virtuemart  3.6.8.10197

I'm just trying to update from and old VM 3.0.18 installation and ran into trouble with my (not continued OPC) Solution.

In the Cart the input fields for the adress are not shown, everything else is working fine.(Even the Names of the fields like email, name, usw are showing)

I found out that in /components/com_virtuemar/helpers/cart.php  Line 464 does change this behavior.....in other words, if i delete the following:

"if($update or empty($this->{$addresstype}))"

everything works fine...

Maybe someone can point me in the right direction where i can start searching...

thx

Otto0815

  • Jr. Member
  • **
  • Posts: 194
Re: Adressfields in cart not showing
« Reply #1 on: November 28, 2019, 11:59:07 am »
ok, it looks like i only have to change:

foreach($this->helper->BTaddress["fields"] as $_field) {

to

foreach($this->userFieldsCart['fields'] as $_field) {

Otto0815

  • Jr. Member
  • **
  • Posts: 194
Re: Adressfields in cart not showing
« Reply #2 on: November 28, 2019, 14:17:28 pm »
While it seems to work first, it doesnt work like intendet, because there is no difference between Billto and Shipto....

How can i call the BillTo and ShipTo fields?