Hi everybody,
In VM2.x, i'm trying to call fields one by one.
For example, in invoice order, i have this :
foreach ($this->userfields['fields'] as $field) {
if (!empty($field['value'])) {
echo '<tr><td class="key">' . $field['title'] . '</td>'
. '<td>' . $field['value'] . '</td></tr>';
}
}
and i want to do something like this :
echo '<tr><td class="key">' . $field['title']. ' ' . $field['first_name'] . ' ' . $field['last_name'] . '<br/>' . $field['address_1'] . '<br/>' . $field['address_1'] . '<br/>' . $field['address_2'] . '<br/>' . $field['zip'] . ' ' . $field['city'] . '<br/>' . $field['virtuemart_country_id'] . '</td></tr>';
Obviously, something wrong.
I have searched for the fields list and how to call them one by one, but i didn't found anything.
If somebody have a clue :)
Thanks !
Found by myself.
<? echo '<tr><td class="key">' . $this->userfields['fields']['title']['value'] . ' ' . $this->userfields['fields']['first_name']['value'] . ' ' . $this->userfields['fields']['last_name']['value'] . '<br/>' . $this->userfields['fields']['address_1']['value'] . '<br/>' . $this->userfields['fields']['address_']['value'] . '<br/>' . $this->userfields['fields']['zip']['value'] . ' ' . $this->userfields['fields']['city']['value'] . '<br/>' . $this->userfields['fields']['virtuemart_country_id']['value'] . '</td></tr>'; ?>