VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Otto0815 on November 26, 2019, 14:24:06 PM

Title: Adressfields in cart not showing
Post by: Otto0815 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
Title: Re: Adressfields in cart not showing
Post by: Otto0815 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) {
Title: Re: Adressfields in cart not showing
Post by: Otto0815 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?