Hi,
The forum engine stripped the
part of the code Mohamed gave you.
I believe that it's why it's not working properly.
Also, there should also be some extra code around that code:
<?php if(hikashop_level(2) && !empty($fields['order'])){?>
<fieldset class="hikashop_order_custom_fields_fieldset">
<legend><?php echo JText::_('ADDITIONAL_INFORMATION'); ?></legend>
<table class="hikashop_order_custom_fields_table adminlist" cellpadding="1" width="100%">
<?php foreach($fields['order'] as $fieldName => $oneExtraField) {
if(!@$oneExtraField->field_frontcomp || empty($order->$fieldName)) continue;
?>
<tr class="hikashop_order_custom_field_<?php echo $fieldName;?>_line">
<td class="key">
<?php echo $fieldsClass->getFieldName($oneExtraField);?>
</td>
<td>
<?php echo $fieldsClass->show($oneExtraField,$order->$fieldName); ?>
</td>
</tr>
<?php } ?>
</table>
</fieldset>
<br/>
<?php } ?>
Note that this code is already in the attachinvoice/invoice.php file so if you don't have it, it means that you have an old version of the plugin and you might be missing something else in the code of the plugin for that code to work properly.