Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2016
    Location
    St. Louis, MO
    Posts
    1
    Plugin Contributions
    0

    Default Onlinelastmodified not being triggered by specific status change

    Hello,
    We've got a customer using Zencart with third party software ShipWorks to download orders by onlinelastmodified. They've encountered an issue where an order that is changed from Pending to Processing by Paypal eCheck, but doesn't seem to be triggering the onlinelastmodified. So ShipWorks is not getting the status change just for these orders in this specific status.
    I'd like to see if this is a known issue or if it can be investigated.

    Thanks in advance!
    Tammy
    ShipWorks Support

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Onlinelastmodified not being triggered by specific status change

    I'm not aware of any database field named "onlinelastmodified".
    But if you're referring to the "last_modified" field in the "orders" table, you might be able to fix that issue by adding this change:

    /includes/modules/payment/paypal/paypal_functions.php
    around line 640:
    Code:
      function ipn_update_orders_status_and_history($ordersID, $new_status = 1, $txn_type) {
        global $db;
        ipn_debug_email('IPN NOTICE :: Updating order #' . (int)$ordersID . ' to status: ' . (int)$new_status . ' (txn_type: ' . $txn_type . ')');
        $db->Execute("update " . TABLE_ORDERS  . "
                      set orders_status = '" . (int)$new_status . "', last_modified = now()
                      where orders_id = '" . (int)$ordersID . "'");
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v139b Suddenly Order Status Not being updated / Emails not sent
    By aovc in forum General Questions
    Replies: 0
    Last Post: 15 Apr 2012, 11:19 AM
  2. Email Status Updates Not Being Sent
    By JohnnyT in forum General Questions
    Replies: 16
    Last Post: 28 Mar 2012, 01:33 PM
  3. Order status being set as zero, so orders not showing in list.
    By refreshmentshop in forum General Questions
    Replies: 2
    Last Post: 18 Oct 2010, 03:57 PM
  4. Default order status not being used on new orders
    By Indiana in forum Managing Customers and Orders
    Replies: 1
    Last Post: 17 Oct 2010, 01:02 PM
  5. Replies: 9
    Last Post: 31 Jan 2009, 11:18 PM

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