Zen Cart Logo
Forums / All Other Contributions/Addons / Edit Orders can't send email on update

Edit Orders can't send email on update

Locked

Views: 1,249

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
20 Jan 2008, 10:43 PM
#1
wolfsz avatar

wolfsz

Zen Follower

Join Date:
Mar 2006
Location:
Australia
Posts:
286
Plugin Contributions:
3

Edit Orders can't send email on update

Hi there
I have just installed the Edit Orders contribution. However when I make some changes and the press [Update] I get the error:
Email error: Could not instantiate email function

However order confirmation emails are being sent.

Has anybody had this error and resolved it?

21 Jan 2008, 1:07 AM
#2
wolfsz avatar

wolfsz

Zen Follower

Join Date:
Mar 2006
Location:
Australia
Posts:
286
Plugin Contributions:
3

Re: Edit Orders can't send email on update

Just incase some-one reads this because they have the same problem, here is my (limited) solution. Todo normal order status updates I use the existing ZC orders functionality and only when I want to edit an order do I use edit orders, however without sending a confirmation to the customer since this is when the error occurs.
To achieve this I changed admin/orders.php to only call edit orders when I click on [Edit] (at the end of the order listing in the rigfht hand column) however when clicking [Details] on the top right hand column to call the standard details page from ZC from which the notify customer function works.

To acheive this you need to find this line (around 781):
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDER_EDIT, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_details.gif', IMAGE_DETAILS) . '</a> <a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
and replace
FILENAME_ORDER_EDIT with FILENAME_ORDERS