Hi,
Is it possible to display data from shopper/user submitted fields to the shoppers page in administration?
So far I have been able to edit: administrator/components/com_virtuemart/views/user/tmpl/default.php
adding in:
<th><?php echo JText::_('COM_VIRTUEMART_SHOPPER_FORM_ZIP'); ?></th>
which shows the correct heading in the shoppers page.
If I follow the other fields and add this it displays nothing:
<td align="left">
<?php echo $row->zip; ?>
</td>
Am I missing a connection to retrieving the correct data?
Any help with this would be hugely appreciated! :)
enable virtuemart debug messages in the virtuemart configuration and add this in your view:
vmdebug('userrow',$row);
this will output the availible information
Thanks kkmediaproduction,
I enabled VM debug messages and added in:
<td align="left">
<?php echo vmdebug('userrow',$row); ?>
</td>
and the result showed multiple results of:
vmdebug userrow Var1:
stdClass Object
(
[id] => xxx
[name] => xxxx
[username] => xxxx
[email] => xxx@xx.com
[is_vendor] => xxx
[shopper_group_name] => xxx
)
Are these the only available fields?
Is there any way to show user data collected from registration forms? Do we need to create a new array?
It sounds like an easy request to me, but I'm a bit lost here...
You need your own database query to get more data. The best way is to look in the user model and call a function from there to get more user data.