Contributions

Features (Category Index)
Search: 

Email Button In Orders

Email Button in Orders.php 1/31/04 by Jesse Labrocca


Tested on MS1 and MS2



If you would like to add an email button in orders.php on the admin side
as it stands it displays the email address as a mailto:
here is how to add a button to quickly email a customer.
Sometimes I needed to email a customer and the notify customer on an update doesnt really do that.

look for this code around line 150 in catalog/admin/orders.php:


<td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td>


now on the next line after that add:


<td class="main"> <?php echo '<a href="' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $order->customer['email_address'] . '">' . tep_image_button('button_email.gif', IMAGE_EMAIL) . '</a>'); ?></td>



Forums support is here
http://forums.oscommerce.com/index.php?showtopic=76733


enjoy

Expand All / Collapse All

Email Button In Orders Jesse Labrocca 31 Jan 2004

Email Button in Orders.php 1/31/04 by Jesse Labrocca


Tested on MS1 and MS2



If you would like to add an email button in orders.php on the admin side
as it stands it displays the email address as a mailto:
here is how to add a button to quickly email a customer.
Sometimes I needed to email a customer and the notify customer on an update doesnt really do that.

look for this code around line 150 in catalog/admin/orders.php:


<td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>'; ?></td>


now on the next line after that add:


<td class="main"> <?php echo '<a href="' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $order->customer['email_address'] . '">' . tep_image_button('button_email.gif', IMAGE_EMAIL) . '</a>'); ?></td>



Forums support is here
http://forums.oscommerce.com/index.php?showtopic=76733


enjoy

Note: Contributions are used at own risk.