Creating a dispatch note (repeat region in universal email)
Hi,
I've created an area in my admin suite that allows the user to update the order with delivery information, date of dispatch etc, then send an automated dispatch note to the customer.
It all works fine, except I think I've got the settings wrong for my repeat region in the actual email, as it only displays the first item in the cart. This is the code snippet from the universal email file for the repeat region:
</tr>
<?php do { ?>
<tr>
<td style="font-size:12px; padding:10px 7px 10px 7px; vertical-align:top; "><?php echo ((isset($_POST["items"]))?$_POST["items"]:"")?></td>
<td style="font-size:12px; padding:10px 7px 10px 7px; vertical-align:top; text-align:left;"><?php echo ((isset($_POST["size"]))?$_POST["size"]:"")?></td>
<td style="font-size:12px; padding:10px 7px 10px 7px; vertical-align:top; text-align:left;"><?php echo ((isset($_POST["code"]))?$_POST["code"]:"")?></td>
<td style="font-size:12px;padding:10px 7px 10px 7px; vertical-align:top; text-align:center;"><?php echo ((isset($_POST["quantity"]))?$_POST["quantity"]:"")?></td>
<td style="font-size:12px; padding:10px 7px 10px 7px; vertical-align:top; text-align:right;">£<?php echo ((isset($_POST["price"]))?$_POST["price"]:"")?></td>
</tr>
<?php } while ($row_WADAorders = mysql_fetch_assoc($WADAorders)); ?>
</table>
Any help gratefully received!