Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Admin Order Status Update Notifier

    Can someone suggest a notifier in admin that fires after an order status update is completed successfully. There's a notifier before the status is updated, and several during order status update email preparation, but I can't find one after the update is complete and the status update email is sent. I will need at a minimum, the order_id of the order whose status is updated. I was hoping not to modify admin/orders.php by putting in a custom notifier.

    Thank you!

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,690
    Plugin Contributions
    123

    Default Re: Admin Order Status Update Notifier

    157 and 158 have ZEN_UPDATE_ORDERS_HISTORY_BEFORE_INSERT in includes/functions/functions_osh_update.php. Admittedly it's right before the database update, but all the information for the update is present in the parameter. If that doesn't work, please create a PR to add ZEN_UPDATE_ORDERS_HISTORY_AFTER_INSERT once the update is done (after the insert id is captured, actually), and just copy that PRs logic to your local file; you'll get it built-in after you upgrade.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Re: Admin Order Status Update Notifier

    Perfect! Thank you. Don't know how I missed it.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,690
    Plugin Contributions
    123

    Default Re: Admin Order Status Update Notifier

    One caveat, hopefully not relevant: there are (or at least were) plugins that didn't use zen_update_orders_history but rather update the table directly - not sure if this is a factor for you.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Re: Admin Order Status Update Notifier

    Thanks. Not relevant in this case.

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,690
    Plugin Contributions
    123

    Default Re: Admin Order Status Update Notifier

    Cool. Let us know what you build!
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 1 Jul 2020, 05:15 PM
  2. v155 Admin order-status update default to no mail?
    By HeleneWallis in forum Managing Customers and Orders
    Replies: 6
    Last Post: 16 Jul 2016, 02:56 PM
  3. Replies: 10
    Last Post: 16 Dec 2014, 05:09 PM
  4. v151 New Order Email Admin Update order status missing?
    By wrickspam in forum Managing Customers and Orders
    Replies: 1
    Last Post: 7 May 2014, 09:46 PM
  5. Change Email Subject of Status Update Messages e.g. Order Update XXXX
    By apemusic in forum Managing Customers and Orders
    Replies: 4
    Last Post: 13 Oct 2010, 08:42 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR