Hi,
I would like to show a extra listing field in the orders.php page (administration side)
This means that i have to edit the code,
So i tried the code from the listings.php page to display extra fields:
Quote:
function getExtraField($id,$fieldid)
{
global $db;
$sSQL = "SELECT sValue FROM ".PREFIX."products_fields WHERE pID='".$id."' AND fID=".$fieldid;
$result=$db->query($sSQL);
if ( $result->isError() )
{
trigger_error('Listing::getListing: Unable to fetch listing');
return false;
}
if ( $result->size()>0 )
{
$rs=$result->fetch();
$value = $rs['sValue'];
}
$result->freeResult();
return $value;
}
|
But that doesnt work,
I get the "null"
The issue is, that i want to show an extra listing field and the total order price in one row.
Do you have ideas how i can do this?
Dominick