That's classified php code... but I think if you had some coffee, time on a sunny afternoon and a charitable donation to some guy named Twitch he would ask you to:
- make sure the new fields are being recorded to the database in the order table or table of your choice (it's likely considering I received an email with the data in it)
- open admin/invoice.php look to see that the field data is being loaded with a sql query then output to html like this:
PHP Code:
<?php // bof Twitch Delivery Information ?>
<table id="deliveryInformation">
<?php $orders_history = $db->Execute("select orders_status_id, date_added, twi_delivery_date, twi_delivery_time, twi_delivery_phone, twi_delivery_card_message
from " . TABLE_ORDERS_STATUS_HISTORY . "
where orders_id = '" . zen_db_input($oID) . "'
order by date_added");
?>
<tr>
<td class="main"><strong><?php echo 'Delivery Information: '; ?></strong></td>
</tr>
<tr>
<td class="main"><?php echo 'Order to be delivered on: '; ?></td>
<td class="deliveryText"><?php echo $orders_history->fields['twi_delivery_date']; ?></td>
</tr>
<tr>
<td class="main"><?php echo 'Preferred delivery time: '; ?></td>
<td class="deliveryText"><?php echo $orders_history->fields['twi_delivery_time']; ?></td>
</tr>
<tr>
<td class="main"><?php echo 'Recipient\'s phone number: '; ?></td>
<td class="deliveryText"><?php echo $orders_history->fields['twi_delivery_phone']; ?></td>
</tr>
<tr>
<td class="main"><?php echo 'Flower card message: '; ?></td>
<td class="deliveryText"><?php echo $orders_history->fields['twi_delivery_card_message']; ?></td>
</tr>
</table>
<?php // eof Twitch Delivery Information ?>
In this example the delivery date, time phone and card message are pulled from the db table TABLE_ORDERS_STATUS_HISTORY and spit out on the admin invoice page.
Do the same for the packing slip once you get the invoice working.
Ask more questions cause occasionally Twitch will answer them in code.