Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    289
    Plugin Contributions
    3

    Default 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?

  2. #2
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    289
    Plugin Contributions
    3

    Default 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

 

 

Similar Threads

  1. v155 EDIT ORDERS V4.0 update product deletes all ordered products
    By kcallagmy in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 5 May 2016, 09:46 AM
  2. Possible to send orders to different email addresses?
    By alliemay in forum Managing Customers and Orders
    Replies: 1
    Last Post: 15 Nov 2009, 02:24 AM
  3. Replies: 10
    Last Post: 20 Feb 2009, 01:30 PM
  4. can't seem to generate an email using Tools > Send Email
    By Earl Parker II in forum General Questions
    Replies: 11
    Last Post: 11 Dec 2007, 03:09 PM
  5. can't send and any email after update from 1.27 to v1.35
    By raino in forum General Questions
    Replies: 9
    Last Post: 28 Oct 2006, 08:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg