Zen Cart Logo
Forums / Addon Shipping Modules / GOB Package Trackers module - Support Thread

GOB Package Trackers module - Support Thread

Locked

Views: 8,026

Results 21 to 40 of 42
This thread is locked. New replies are disabled.
27 Jul 2010, 10:11 PM
#21
scupoli avatar

scupoli

New Zenner

Join Date:
Mar 2006
Location:
USA
Posts:
77
Plugin Contributions:
0

GOB Package Trackers module - Support Thread

Am I in the support thread?

29 Jul 2010, 11:20 PM
#22
scupoli avatar

scupoli

New Zenner

Join Date:
Mar 2006
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

Seriously? If your going to make something for the community, you need to support it as well.

29 Jul 2010, 11:26 PM
#23
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: GOB Package Trackers module - Support Thread

scupoli:

Seriously? If your going to make something for the community, you need to support it as well.
LOL ... in a perfect world!

Maybe you should try this: https://www.zen-cart.com/tutorials/index.php?article=82

30 Jul 2010, 3:33 AM
#24
scupoli avatar

scupoli

New Zenner

Join Date:
Mar 2006
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

This did nothing. I have "Strict Error Reporting Is On" On the top of my screen but it isn't showing any errors. And there clearly is a error cause of the white screen.

30 Jul 2010, 2:26 PM
#25
gob33 avatar

gob33

New Zenner

Join Date:
Jun 2008
Location:
Bordeaux, France
Posts:
69
Plugin Contributions:
3

Re: GOB Package Trackers module - Support Thread

Tested on your site with your account. Gives an error 500.

Have checked the module. All is running absolutely good on my computer. Have access to the previous Orders normally with the tracking numbers displayed.

The module is good, if not, other people would have noticed me that pb long time before.

Certainly you have a typo introduced by cutting and pasting.
See commas at at of lines.
Recheck or use 'debug error utility' from ZC modules to get the bad line.

PS: Im not online everyday to do support for customers and their shops. Its GPL.

30 Jul 2010, 5:21 PM
#26
scupoli avatar

scupoli

New Zenner

Join Date:
Mar 2006
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

Can I get a hint on where the mistake would be. Error Reporting isn't working for me. Would it be front end code or back end code where the admin area code is?

Please, just post your code here so I can see what I did wrong.

30 Jul 2010, 5:38 PM
#27
scupoli avatar

scupoli

New Zenner

Join Date:
Mar 2006
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

Or you can just look at my code. Please if someone can help I would appreciate it.

http://www.keysandmice.com/code.zip

30 Jul 2010, 6:01 PM
#28
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: GOB Package Trackers module - Support Thread

The FAQ article I quoted FIRST tells you to install the Debug Logging tool. What did that reveal when you did it?
Enabling Strict Error Reporting is something ELSE to do as a secondary idea, not the first step.

gob33 has generously responded and looked at your site and confirmed that the module itself is not the problem. Perhaps comparing your code to the original module code would be a good step?

30 Jul 2010, 6:02 PM
#29
scupoli avatar

scupoli

New Zenner

Join Date:
Mar 2006
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

I've done this three times.

Generously? Generously would be actually looking at my code. Would take a few minutes. I can see where this is going. So I'm going to unistall the damn thing.

Thanks for nothing.

30 Jul 2010, 6:31 PM
#30
scupoli avatar

scupoli

New Zenner

Join Date:
Mar 2006
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

Before anyone judges me, I asked politely for help via PMs and here on the forums. These people didn't lift a finger to help. They seem very arrogant and too busy to help anyone here.

Incredible!

30 Jul 2010, 11:52 PM
#31
gob33 avatar

gob33

New Zenner

Join Date:
Jun 2008
Location:
Bordeaux, France
Posts:
69
Plugin Contributions:
3

Re: GOB Package Trackers module - Support Thread

Attached are my working files with tracking incorporated for the store front.
400+ people have downloaded that damn module without returning problems.

31 Jul 2010, 12:15 AM
#32
scupoli avatar

scupoli

New Zenner

Join Date:
Mar 2006
Location:
USA
Posts:
77
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

Thank you!!!

31 Jul 2010, 10:21 AM
#33
gob33 avatar

gob33

New Zenner

Join Date:
Jun 2008
Location:
Bordeaux, France
Posts:
69
Plugin Contributions:
3

Re: GOB Package Trackers module - Support Thread

I really appreciate you getting back to me and trying to help.
I was missing a syntax on header.php. I fixed it.

Thank you, Scott
Pb fixed. Be warned, users, to be carefull when patching the source.

29 Aug 2010, 3:40 PM
#34
choccybox avatar

choccybox

New Zenner

Join Date:
Aug 2010
Posts:
25
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

When changing to this:

  1. Edit "admin/orders.php"

6.1) Line 589, add 1 piece :

              <tr>
                <td class="main"><strong><?php echo ENTRY_NOTIFY_CUSTOMER; ?></strong> <?php echo zen_draw_checkbox_field('notify', '', true); ?></td>
                <!-- GOB_PACKAGE_TRACKERS_MODIFICATION_BEGIN -->
                <td class="main"><strong><?php echo ENTRY_NOTIFY_TRACKING; ?></strong> <?php echo zen_draw_checkbox_field('notify_tracking', '', true); ?></td>
                <!-- GOB_PACKAGE_TRACKERS_MODIFICATION_END -->
                <td class="main"><strong><?php echo ENTRY_NOTIFY_COMMENTS; ?></strong> <?php echo zen_draw_checkbox_field('notify_comments', '', true); ?></td>
              </tr>

from this:

              <tr>
                <td class="main"><strong><?php echo ENTRY_NOTIFY_CUSTOMER; ?></strong> [<?php echo zen_draw_radio_field('notify', '1', true) . '-' . TEXT_EMAIL . ' ' . zen_draw_radio_field('notify', '0', FALSE) . '-' . TEXT_NOEMAIL . ' ' . zen_draw_radio_field('notify', '-1', FALSE) . '-' . TEXT_HIDE; ?>]   </td>

                <!-- GOB_PACKAGE_TRACKERS_MODIFICATION_BEGIN -->
                <td class="main"><strong><?php echo ENTRY_NOTIFY_TRACKING; ?></strong> <?php echo zen_draw_checkbox_field('notify_tracking', '', true); ?></td>
                <!-- GOB_PACKAGE_TRACKERS_MODIFICATION_END -->

                <td class="main"><strong><?php echo ENTRY_NOTIFY_COMMENTS; ?></strong> <?php echo zen_draw_checkbox_field('notify_comments', '', true); ?></td>

Your emails are not sent!

If I use the second code above it works fine. What is the problem here?

29 Aug 2010, 3:43 PM
#35
choccybox avatar

choccybox

New Zenner

Join Date:
Aug 2010
Posts:
25
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

In addition why are no tracking numbers sent if there are no comments on the order?

30 Aug 2010, 1:36 PM
#36
gob33 avatar

gob33

New Zenner

Join Date:
Jun 2008
Location:
Bordeaux, France
Posts:
69
Plugin Contributions:
3

Re: GOB Package Trackers module - Support Thread

  1. No problem there.
    The modifs to do are between the labels <!--GOB_PACKAGE_TRACKERS_MODIFICATION_XXXX --> only.
    You have copied a line from ZC 1.3.8 (when that module was published).
    That line has been changed in 1.3.9 in:
      <td class="main"><strong><?php echo ENTRY_NOTIFY_CUSTOMER; ?></strong> [<?php echo zen_draw_radio_field('notify', '1', true) . '-' . TEXT_EMAIL . ' ' . zen_draw_radio_field('notify', '0', FALSE) . '-' . TEXT_NOEMAIL . ' ' . zen_draw_radio_field('notify', '-1', FALSE) . '-' . TEXT_HIDE; ?>]   </td> 

Simply insert the modif between labels without changing the code.

  1. This is the standart behaviour of orders emails in ZC.
    A comment or an order status change is needed for the email to be send.
    Line 122 of admin\orders.php says:
        if ( ($check_status->fields['orders_status'] != $status) || zen_not_null($comments)) {
          $db->Execute("update " . TABLE_ORDERS . "
          .....

If you need to send an email, put some char like '-' in the comments.

1 Sep 2010, 1:46 AM
#37
choccybox avatar

choccybox

New Zenner

Join Date:
Aug 2010
Posts:
25
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

gob,

Thanks for getting back to me on this.

Yes, that is the mistake I was making. I was changing the whole section of the code that appeared in your installation guide.
It seems to be working great now! This is a perfect little contribution for setting up tracking codes for shipping, and makes our shop's life a lot easier now we don't have to manually enter the tracking numbers each time!
The only thing that was slightly confusing was the layout of the installation instructions.

Thanks GOB!

6 Sep 2010, 9:17 AM
#38
magnusrf avatar

magnusrf

New Zenner

Join Date:
Dec 2009
Posts:
10
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

gob33,

Great mod. Thanks for the contribution. I found a couple of errors in the package_trackers_install_so.txt file for those want to use this mod with super orders.

I was having problems getting the customer notified indicator to update properly with a green check mark on the status history display. When i checked my database, the customer_notified field was set to 0 even though I select to notify customer and received the status update email.

Reviewing your php modifications, i found the following issues:

package_trackers_install_so.txt says:
4) Edit "admin/includes/functions/extra_functions/super_orders_functions.php"
4.1) Line 392, find the function:

/////////////////
// Function    : update_status
// Arguments   : oID, new_status, notified(optional), comments(optional)
// Return      : none
// Description : Adds a new status entry to an order
/////////////////
function update_status($oID, $new_status, $notified = 0, $comments = '') {
  global $db;

  if ($notified == 'on')
       $cust_notified = 1;
  else
       $cust_notified = 0;

should say ($notified == 'no' replaced by $notified == '1'):

/////////////////
// Function    : update_status
// Arguments   : oID, new_status, notified(optional), comments(optional)
// Return      : none
// Description : Adds a new status entry to an order
/////////////////
function update_status($oID, $new_status, $notified = 0, $comments = '') {
  global $db;

  if ($notified == '1')
       $cust_notified = 1;
  else
       $cust_notified = 0;

also package_trackers_install_so.txt says:
7) Edit "admin/super_orders.php"
...
7.4) Line 118, change these 3 lines:

          update_status($oID, $status, $notify, $comments);

          if ($customer_notified == '1') {
            email_latest_status($oID);
          }

to these lines:

          // GOB_PACKAGE_TRACKERS_MODIFICATION_BEGIN
          update_status($oID, $status, $notify, $comments, $tracker_id, $tracking_numbers);
          // GOB_PACKAGE_TRACKERS_MODIFICATION_END

should say ($notify replaced by $customer_notified):

          update_status($oID, $status, $customer_notified, $comments);

          if ($customer_notified == '1') {
            email_latest_status($oID);
          }

to these lines:

          // GOB_PACKAGE_TRACKERS_MODIFICATION_BEGIN
          update_status($oID, $status, $customer_notified, $comments, $tracker_id, $tracking_numbers);
          // GOB_PACKAGE_TRACKERS_MODIFICATION_END

Once I made these changes, the customer_notified field correctly would update to value 1 on future status updates where notification was sent. Also green check mark showed up on customer notified field in super orders status history.

6 Sep 2010, 3:53 PM
#39
gob33 avatar

gob33

New Zenner

Join Date:
Jun 2008
Location:
Bordeaux, France
Posts:
69
Plugin Contributions:
3

Re: GOB Package Trackers module - Support Thread

Software Guy has changed the code of Super Orders a little since v2.0rev47 by Frank Koehl.
I suppose users have compared the code when doing modifications and adapted accordingly.
Thanks for noticing these 2 changements.

19 Nov 2010, 6:58 PM
#40
devilekk avatar

devilekk

New Zenner

Join Date:
Sep 2010
Posts:
5
Plugin Contributions:
0

Re: GOB Package Trackers module - Support Thread

Thank you for great contribution, works great on 1.3.9.e! Maybe one thing which i would like to change - in orders, your contrib added customer comments - i rather like box with track id of package. (less clicks to see the status) but otherwise, it´s really cool! thanks a lot!:clap: