Hi,
There are two possibilities:
- You have an old version of the PDF invoice plugin which doesn't support that invoice display setting as it was added a few years back (5 ?)
- You have an override file of the invoice file of the plugin. Check if you have the file media/com_hikashop/plugins/invoice.php
This file won't be updated when you update the plugin so you might have it based on an old version of the invoice.php file of the plugin which is why it doesn't take into account the setting of the custom field.
The custom order fields are displayed by the code:
<?php if(hikashop_level(2) && !empty($fields['order'])){
ob_start();
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,'user_email'); ?>
</td>
</tr>
<?php
}
$additionalInfo = ob_get_clean();
if(!empty($additionalInfo)){ ?>
<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 echo $additionalInfo; ?>
</table>
</fieldset>
<br/>
<?php
}
} ?>
at the end of the plugins/hikashop/attachinvoice/attachinvoice/invoice.php for the PDF invoice plugin.