Results 1 to 10 of 35

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,870
    Plugin Contributions
    96

    Default Re: Orders Status History -- Updated By [Support Thread]

    As there have been no changes to /YOUR_ADMIN/orders.php since v1.5.2, this plugin is ready for Zen Cart v1.5.3!

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,870
    Plugin Contributions
    96

    Default Re: Orders Status History -- Updated By [Support Thread]

    v1.2.0 is now available from the Plugins area. The update provides downwardly-compatible changes required for Zen Cart v1.5.4.

  3. #3
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Orders Status History -- Updated By [Support Thread]

    Would you consider making a version that is for showing who last updated a product?

    create a new field in TABLE_PRODUCTS and have that enter the admin id into there?

    Obviously this would have to be integrated into the catalog instead of orders, but is it something you would consider?
    Last edited by DigitalShadow; 24 Jan 2015 at 01:24 PM.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,870
    Plugin Contributions
    96

    Default Re: Orders Status History -- Updated By [Support Thread]

    I'll think about it, but it'll be a low-priority item as it's not a feature that I need.

  5. #5
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Orders Status History -- Updated By [Support Thread]

    I'm having problems, I've merged everything, in the comments section it is pulling the data from the table, i.e. if i got to the database and manually enter an updated by value it shows that data.

    But it appears to not be updating the table when i update an order.

  6. #6
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Orders Status History -- Updated By [Support Thread]

    I can see the problem, there is a large section

    osh_updated_by changes 1/4

    where you have commented out part of order.php for i presume, your osh_updated_by_functions.php file, but on my orders.php there are things in those sections I can't comment out, this is where the problem lies.
    Last edited by DigitalShadow; 24 Jan 2015 at 02:37 PM.

  7. #7
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Orders Status History -- Updated By [Support Thread]

    can the code for updating the table for who updated the order just be included in orders.php?

  8. #8
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Orders Status History -- Updated By [Support Thread]

    The section below is from my orders.php, i've managed to merge all other tracking mods into your osh_updated_by_functions.php file, but I can't figure this but out.

    What do I need to do in this section?

    PHP Code:
    $email_comments = (zen_not_null($message) && $email_include_message === true) ? (OSH_EMAIL_TEXT_COMMENTS_UPDATE $message "\n\n") : ''
    PHP Code:
                $notify_comments '';
    // BEGIN TY TRACKER 3 - E-MAIL TRACKING INFORMATION  ----------------------------------
                
    if (isset($_POST['notify_comments']) && ($_POST['notify_comments'] == 'on')) {
                  if (
    zen_not_null($comments)) { $notify_comments EMAIL_TEXT_COMMENTS_UPDATE $comments "\n\n"; }
                  if (
    zen_not_null($track_id1)) { $notify_comments .= "\n\nYour " CARRIER_NAME_1 " Tracking ID is " $track_id1 " \n<br /><a href=" CARRIER_LINK_1 $track_id1 ">Click here</a> to track your package. \n<br />If the above link does not work, copy the following URL address and paste it into your Web browser. \n<br />" CARRIER_LINK_1 $track_id1 "\n\n<br /><br />It may take up to 24 hours for the tracking information to appear on the website." "\n<br />"; }
                  if (
    zen_not_null($track_id2)) { $notify_comments .= "\n\nYour " CARRIER_NAME_2 " Tracking ID is " $track_id2 " \n<br /><a href=" CARRIER_LINK_2 $track_id2 ">Click here</a> to track your package. \n<br />If the above link does not work, copy the following URL address and paste it into your Web browser. \n<br />" CARRIER_LINK_2 $track_id2 "\n\n<br /><br />It may take up to 24 hours for the tracking information to appear on the website." "\n<br />"; }
                  if (
    zen_not_null($track_id3)) { $notify_comments .= "\n\nYour " CARRIER_NAME_3 " Tracking ID is " $track_id3 " \n<br /><a href=" CARRIER_LINK_3 $track_id3 ">Click here</a> to track your package. \n<br />If the above link does not work, copy the following URL address and paste it into your Web browser. \n<br />" CARRIER_LINK_3 $track_id3 "\n\n<br /><br />It may take up to 24 hours for the tracking information to appear on the website." "\n<br />"; }
                  if (
    zen_not_null($track_id4)) { $notify_comments .= "\n\nYour " CARRIER_NAME_4 " Tracking ID is " $track_id4 " \n<br /><a href=" CARRIER_LINK_4 $track_id4 ">Click here</a> to track your package. \n<br />If the above link does not work, copy the following URL address and paste it into your Web browser. \n<br />" CARRIER_LINK_4 $track_id4 "\n\n<br /><br />It may take up to 24 hours for the tracking information to appear on the website." "\n<br />"; }
                  if (
    zen_not_null($track_id5)) { $notify_comments .= "\n\nYour " CARRIER_NAME_5 " Tracking ID is " $track_id5 " \n<br /><a href=" CARRIER_LINK_5 $track_id5 ">Click here</a> to track your package. \n<br />If the above link does not work, copy the following URL address and paste it into your Web browser. \n<br />" CARRIER_LINK_5 $track_id5 "\n\n<br /><br />It may take up to 24 hours for the tracking information to appear on the website." "\n<br />"; }
                  if (
    zen_not_null($track_id6)) { $notify_comments .= "\n\nYour " CARRIER_NAME_6 " Tracking ID is " $track_id6 " \n<br /><a href=" CARRIER_LINK_6 $track_id6 ">Click here</a> to track your package. \n<br />If the above link does not work, copy the following URL address and paste it into your Web browser. \n<br />" CARRIER_LINK_6 $track_id6 "\n\n<br /><br />It may take up to 24 hours for the tracking information to appear on the website." "\n<br />"; }

    // BEGIN TY TRACKER 3 - E-MAIL TRACKING INFORMATION --------------------------------------------------------------------
                
    }
                
    //send emails
                
    $message 

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,870
    Plugin Contributions
    96

    Default Re: Orders Status History -- Updated By [Support Thread]

    Quote Originally Posted by DigitalShadow View Post
    can the code for updating the table for who updated the order just be included in orders.php?
    You can certainly pull the $updated_by determination from /includes/functions/extra_functions/osh_updated_by_functions.php and include that in your customized version of orders.php.

    You'll need also to copy the zen_updated_by_admin function and the code that adds the updated_by field to the database (if not already present).

    Please note: The notifiers issued by the zen_update_orders_history common function are used by a fair number of my other plugins to recognize that an order's status information is being updated and, if so, what has changed.

 

 

Similar Threads

  1. v150 Reviews - Updated [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 125
    Last Post: 30 Apr 2023, 07:59 PM
  2. Set Language Status [Support Thread]
    By Design75 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 5 May 2016, 06:25 PM
  3. Replies: 68
    Last Post: 29 Jul 2013, 06:33 PM
  4. Orders status history - error message
    By dmagic in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 17 Mar 2011, 12:11 PM
  5. Updated status but invoice status not updated
    By bax79 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 6 May 2009, 03:53 PM

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