Hi,
I have created custom fields for “student name” in invoice template. It works fine if only 1 items with 1 description.
how to differentiate the item so the name won’t display in the next item.
for example:
item 1 - night class - student id 123, student id 345
item 2 - day class - student id 099, student id 678
item 3 - full time class - student id 663, student id 990
I have edited the blue template like this:
<?php echo lang('item'); ?>
<?php echo lang('description'); ?>
<?php echo lang('qty'); ?>
<?php echo lang('price'); ?>
<?php echo lang('total'); ?>
<?php
$linecounter = 0;
foreach ($items as $item) { ?>
<tr class="border-bottom-n <?php echo ($linecounter % 2 ? 'background-l' : '')?>">
<td><?php echo $item->item_name; ?></td>
<td><?php echo nl2br($item->item_description); ?>
<br><?php echo ($invoice->invoice_custom_participant1); ?> </br>
<br><?php echo ($invoice->invoice_custom_participant2); ?> </br>
<br><?php echo ($invoice->invoice_custom_participant3); ?> </br>
<br><?php echo ($invoice->invoice_custom_participant4); ?> </br>
<br><?php echo ($invoice->invoice_custom_participant5); ?> </br>
</td>
<td class="text-right">
<?php echo format_amount($item->item_quantity); ?>
</td>
<td class="text-right">
<?php echo format_currency($item->item_price); ?>
</td>
<td class="text-right">
<?php echo format_currency($item->item_subtotal); ?>
</td>
</tr>
<?php $linecounter++; ?>
<?php } ?>
</tbody>
</table>
<table>
thanks in advance.
DevBot
January 25, 2016, 8:50am
2
[size=10]Last Update: 25.01.2016[/size]