If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Admin Tools / Orders Status History -- Updated By [Support Thread]

Orders Status History -- Updated By [Support Thread]

Started by lat9 on 20 Mar 2014, 12:22 PM · Views: 9,859

Results 21 to 35 of 35
24 Jan 2015, 4:31 PM
#21
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Post #21 by digitalshadow

if i don't change anything and just update the order, a new record is also generated in TABLE_ORDER_STATUS_HISTORY

this is what my TABLE_ORDER_STATUS_HISTORY structure is

1	orders_status_history_id
2	orders_id
3	orders_status_id
4	date_added	
5	customer_notified
6	comments
7	comment_by
8	track_id1	
9	track_id2
10	track_id3
11	track_id4
12	track_id5
13	track_id6
14	rma_number
15	action
16	updated_by
24 Jan 2015, 4:44 PM
#22
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Post #22 by digitalshadow

i put that, there is no log file in logs

would you like a copy of my orders.php file to see if any other mods are breaking your calls?

24 Jan 2015, 5:50 PM
#23
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #23 by lat9

DigitalShadow:

i put that, there is no log file in logs

would you like a copy of my orders.php file to see if any other mods are breaking your calls?
Sure. Since there's no debug-log, the function isn't being called -- that's why there's no updated_by value!

24 Jan 2015, 6:26 PM
#24
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Post #24 by digitalshadow

that is what i assumed, pm sent

28 May 2015, 6:58 PM
#25
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #25 by lat9

I've just uploaded v1.2.1 to the Plugins. It contains the correction to properly handle CR/LF sequences in the status-update messages.

3 Nov 2015, 9:50 PM
#26
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Post #26 by shopville

Thanks for this great mod!
I followed the readme and was able to install it successfully, the updated by column is also being updated as it should, however when i do an update i get a 500 server error (the update is actually done but its not redirecting to the order page as it should) I suspect that this is caused by some error when merging the orders.php file, if I upload my orders.php file could someone take a moment to review the issue?

TIA

3 Nov 2015, 10:04 PM
#27
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Post #27 by shopville

ShopVille:

Thanks for this great mod!
I followed the readme and was able to install it successfully, the updated by column is also being updated as it should, however when i do an update i get a 500 server error (the update is actually done but its not redirecting to the order page as it should) I suspect that this is caused by some error when merging the orders.php file, if I upload my orders.php file could someone take a moment to review the issue?

TIA

Update:

When I removed the following text marked in bold red from orders.php the 500 server error disappeared however the updated by column would no longer update:

// BEGIN TY TRACKER 1 - DEFINE VALUES ----------------------------------------------
        $track_id1 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id1']));
        $track_id2 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id2']));
        $track_id3 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id3']));
        $track_id4 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id4']));
        $track_id5 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id5']));
// END TY TRACKER 1 - DEFINE VALUES ------------------------------------------------------------------

      
[B]//-bof-c-snap_affiliates-v2.5.0
/* ----- Processing now handled by separate function -----
        $order_updated = false;[/B]
// BEGIN TY TRACKER 2 - INCLUDE DATABASE FIELDS IN STATUS QUERY ----------------------------------------------
        $check_status = $db->Execute("SELECT customers_name, customers_email_address, orders_status, payment_module_code, shipping_module_code,
				      date_purchased from " . TABLE_ORDERS . "

And

[B]*/[/B]
  $check_status = $db->Execute("SELECT orders_status, date_purchased FROM " . TABLE_ORDERS . " WHERE orders_id = '" . (int)$oID . "'");
        $customer_notified = (isset($_POST['notify']) && ($_POST['notify'] == 1 || $_POST['notify'] == -1)) ? $_POST['notify'] : 0;
        $osh_record_added = zen_update_orders_history($oID, $comments, null, $status, $customer_notified, (isset($_POST['notify_comments']) && $_POST['notify_comments'] == 'on'));
        $order_updated = ($osh_record_added == -1) ? false : true;

[B]//-eof-c-snap_affiliates-v2.5.0[/B]
4 Nov 2015, 1:24 PM
#28
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #28 by lat9

@ShopVille, that implies to me that the merge into /YOUR_ADMIN/orders.php missed something. If you send me a copy of your orders.php file via PM, I'll give it a look.

What version of Zen Cart? What other plugins have you installed that muck with orders.php?

6 Jan 2016, 7:19 PM
#29
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #29 by lat9

I've just submitted v1.3.0 to the plugins for review.

Updates the plugin for Zen Cart v1.5.5 compatibility and to allow the common update function to properly operate when issued from either the admin-console or the storefront.

10 Jan 2016, 7:39 PM
#30
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #30 by lat9

v1.3.0 is now available for download.

8 Aug 2016, 6:32 PM
#31
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #31 by lat9

I've just submitted v2.0.0 of the plugin for review. This version:

  • Supports Zen Cart 1.5.4 and 1.5.5[a] only.
  • Minimizes the changes to the ZC-specific /YOUR_ADMIN/orders.php (no more comment-out block), making it easier to incorporate into already-edited files.
  • Recognizes that some callers might have previously "prepared" the commentary input (i.e. adding slashes).
  • Moves the database initialization to a "more proper" admin-level initialization script.
12 Aug 2016, 1:44 PM
#32
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #32 by lat9

v2.0.0 is now available for download.

4 Apr 2019, 9:16 PM
#33
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Post #33 by torvista

Is this now part of ZC156/not necessary?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

5 Apr 2019, 11:46 AM
#34
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #34 by lat9

torvista:

Is this now part of ZC156/not necessary?
Yes, it is, so no it's not! :cool: ... you asked for it!

Anyway, be sure to grab the update (destined for zc156b and later), where the load point for the function's in-core version was corrected: https://github.com/zencart/zencart/issues/2224

Either that, or make sure that the auto_loader and extra_functions files provided by this plugin are removed prior to any zc156/zc156a installation.

29 Jul 2019, 6:05 PM
#35
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #35 by swguy

Updated plugin area to note that this is now built in. Thank you @lat9!

That Software Guy. My Store: Zen Cart Support
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.