Hi nicolas,
Thank you for the insigtht, but it still doesn't work.
Here's the code from the order status notification mail:
<!--{IF:SHIPPING}-->
<p>
<span style="color:#1c8faf !important;font-size:12px;font-weight:bold;">{TXT:HIKASHOP_SHIPPING_METHOD} :</span> {VAR:SHIPPING} {VAR:order.shipping_tracking}
<?php
if($data->order_status == 'shipped'){
?><span style="color:#1c8faf !important;font-size:12px;font-weight:bold;">Tracciamento Spedizione: </span> <?php echo $data->cart->tracking_number;
}
?>
</p>
<!--{ENDIF:SHIPPING}-->
I added the "if($data->order_status == 'shipped'){..." part, but it doesn't show when I open the mail popup in the order view in the administrazion panel, or the popup mail view when I change order status from order list in administration.
No Tracking Number, just "Tracciamento Spedizione" in the actual mail sent (the copy I receive as administrator).
In the front order view (order->view view, the one you open fron your user account to see a single 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%">
<tr class="hikashop_order_custom_field_<?php echo $fieldName;?>_line">
<td class="key">
Numero di Tracciamento :
</td>
<td>
<?php echo $this->element->tracking_number; ?>
</td>
</tr>
<?php foreach($this->fields['order'] as $fieldName => $oneExtraField) {
if(!@$oneExtraField->field_frontcomp || empty($this->order->$fieldName)) continue;
?>
<tr class="hikashop_order_custom_field_<?php echo $fieldName;?>_line">
<td class="key">
<?php echo $this->fieldsClass->getFieldName($oneExtraField);?>
</td>
<td>
<?php echo $this->fieldsClass->show($oneExtraField,$this->order->$fieldName); ?>
</td>
</tr>
<tr class="hikashop_order_custom_field_<?php echo $fieldName;?>_line">
<td class="key">
Numero di Tracciamento Raccomandata :
</td>
<td>
<?php echo $data->cart->tracking_number; ?>
</td>
</tr>
<?php } ?>
</table>
</fieldset>
Here I added a line in the additional informations table. It shows "Numero di Tracciamento Raccomandata", AND the tracking number value.
So Everything works but the tracking number value in the notification mail.
Thanks!