Forums / All Other Contributions/Addons / Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

Started by reesy on 10 May 2006, 3:25 PM · Views: 53,487

Results 141 to 160 of 192
27 May 2007, 1:30 AM
#141
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

I only copied and pasted the information from the install files.
Must have been this line because some of them, works and some dont:

<script language="javascript"><!-- document.write('<?php echo '<a href="javascript:void(0);" onmouseover="return overlib(\\\'' . $cleanComment . '\\\');" onmouseout="return nd();"><img src="images/icons/comment2.gif" align="top" border=0></a> '; ?>'); --></script>

');" onmouseout="return nd();"> is the part that is showing up

I cant see where the mistake is.

30 May 2007, 7:56 AM
#142
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

milobloom:

I cant see where the mistake is.

Did you try replacing your code with the code suggested previously by qhome?

Change:
$cleanComment

To:
addslashes(addslashes($cleanComment))

30 May 2007, 8:08 AM
#143
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

austy25:

Hey Thanks so much for this - I have followed Woddymon's advice and edited my files manually but I just have one small problem :

I found the above line just fine Thank you!! But just below it says:
I am having problems with it, I can't find the <body> tag anywhere in the admin/index.php what am I missing ???!!!

Missed your post . I suspect you have resolved by now. If not look again. You should see:

</script>
<?php // ====> BOF: INFO AT-A-GLANCE <==== ?>
<script language="javascript" src="includes/javascript/overlib_mini.js"><!-- overLIB (c) Erik Bosrup --></script>
<?php // ====> EOF: INFO AT-A-GLANCE <==== ?>
</head>
<body onload="init()">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
31 May 2007, 12:25 AM
#144
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

Ill Try that thanks

7 Jun 2007, 1:53 PM
#145
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

milobloom:

I only copied and pasted the information from the install files.
Must have been this line because some of them, works and some dont:

<script language="javascript"><!-- document.write('<?php echo '<a href="javascript:void(0);" onmouseover="return overlib(\\\'' . $cleanComment . '\\\');" onmouseout="return nd();"><img src="images/icons/comment2.gif" align="top" border=0></a> '; ?>'); --></script>

');" onmouseout="return nd();"> is the part that is showing up

I cant see where the mistake is.

I tried everything... Still have the same problem...
Oh By the way.... I noticed one thing.

If someone orders 1 thing. It works fine.
If they order 2 or more... Thats when I get this problem.

7 Jun 2007, 2:03 PM
#146
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

I deleted "onmouseout="return nd()" from "Admin->Orders" to see if thats where it was comming from and its not.
It still shows up.

2nd. It works fine when someone order 1 item. But if they order 2 or more it gets wackey.

1 Nov 2007, 10:08 PM
#147
taipa avatar

taipa

New Zenner

Join Date:
Nov 2005
Posts:
54
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

My host just updated to PHP5 today, and it killed this mod.

I now get this error in the admin sidebox where this Info is normally displayed:

Fatal error: Cannot use object of type queryFactoryResult as array in /home2/spunycom/public_html/admin/index.php on line 177

In my admin/index.php, line 177 is echo $orders['orders_id']; in the Info At a Glance code:

// ====> BOF: INFO AT-A-GLANCE <====
echo $orders['orders_id'];
$artikel = "";
$num = 1;
$result_artikels = $db->Execute("select products_name, products_quantity from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . zen_db_input($orders->fields['orders_id']) . "' ");
while(!$result_artikels->EOF){
$artikel .= ($result_artikels->fields["products_quantity"]) . "x " . ($result_artikels->fields["products_name"]) . "<br>";
$num++;
$result_artikels->MoveNext();
}
{
$parsedComment = explode("\r", $artikel);
$cleanComment = "";
$i=0;
while($i < count($parsedComment)) {
$cleanComment .= trim($parsedComment[$i]);
$i++;
if ($i < count($parsedComment)) $cleanComment .= '<br \> ';
}
?>
<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:void(0);" onmouseover="return overlib(\\\'' . $cleanComment . '\\\');" onmouseout="return nd();"><img src="images/icons/comment2.gif" align="top" border=0></a> '; ?>');
--></script>
<?php } ?>
<?php // ====> EOF: INFO AT-A-GLANCE <====

Does anyone know how to make this compatable with PHP5?

I'm using Zen 1.3.6

Canadians who use Quickbooks please read this thread!

2 Nov 2007, 12:00 PM
#148
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

Hmm I don't think zen-cart itself is compatible with PHP5. Just because they updated doesn't mean they are forcing you to use it yet. We still got 94 days before the golive data where they force the switch.

Contact your provider, they would have to tell you if they were switching you to PHP5 and they should be able to put a custom php.ini file or htaccess switch to force php4. But I think you'd lose all zen-cart functionality if they upgraded to php5

3 Nov 2007, 9:35 PM
#149
taipa avatar

taipa

New Zenner

Join Date:
Nov 2005
Posts:
54
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

I use camelot-hosting (from the Hosting page on this site), and they just upgraded to PHP5. They're a Zen Cart host, so I don't think they'd puposely screw everyone over if Zen Cart did not work with PHP5 at all.

Everything else with my Zen Cart works just fine, it's just the Info at a Glance part that's causing an error, and I don't know enough about PHP to fix it myself. :/

Canadians who use Quickbooks please read this thread!

4 Nov 2007, 2:45 PM
#150
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

Taipa:

I use camelot-hosting (from the Hosting page on this site), and they just upgraded to PHP5. They're a Zen Cart host, so I don't think they'd puposely screw everyone over if Zen Cart did not work with PHP5 at all.

Everything else with my Zen Cart works just fine, it's just the Info at a Glance part that's causing an error, and I don't know enough about PHP to fix it myself. :/

Well many hosts are PHP5 but they still support the PHP4 customers by adding a configuration line in the server setup. Ask them if they switched you over.. but still I don't think half of zen-cart would work on PHP5. But perhaps something else got changed in their upgrade.

All of the hosts I've used are both as well. They can't stop supporting PHP4 until the GOphp5 live date.

9 Nov 2007, 10:47 PM
#151
x_o avatar

x_o

New Zenner

Join Date:
May 2007
Posts:
21
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

I just have moved to PHP5 and everything works fine except Info At A Glance mod.
I have the same error
Fatal error: Cannot use object of type queryFactoryResult as array in /home/account/public_html/admin/index.php on line **184

**Info At A Glance is a great and handy mod and it is sad that it does not work with PHP5.:(

11 Nov 2007, 8:18 AM
#152
x_o avatar

x_o

New Zenner

Join Date:
May 2007
Posts:
21
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

I have found the solution for Fatal Error in PHP5, in admin/index.php one must change the Line 182: ```php
echo $orders['orders_id'];

```php
echo $orders->fields['orders_id'];
16 Nov 2007, 6:29 PM
#153
ofelixculpa avatar

ofelixculpa

New Zenner

Join Date:
Jul 2006
Posts:
43
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

X.O.:

I have found the solution for Fatal Error in PHP5, in admin/index.php one must change the Line 182: ```php
echo $orders['orders_id'];

> ```php
echo $orders->fields['orders_id'];

X.O.,

Thanks for figuring that out and posting it for everyone. :smile:

So, no other issues at all with php5?

17 Nov 2007, 12:46 AM
#154
taipa avatar

taipa

New Zenner

Join Date:
Nov 2005
Posts:
54
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

X.O.:

I have found the solution for Fatal Error in PHP5, in admin/index.php one must change the Line 182: ```php
echo $orders['orders_id'];

> ```php
echo $orders->fields['orders_id'];

Worked like a charm, thank you!!

No other problems on PHP5 so far!

Canadians who use Quickbooks please read this thread!

18 Nov 2007, 8:52 PM
#155
x_o avatar

x_o

New Zenner

Join Date:
May 2007
Posts:
21
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

OFelixCulpa:

So, no other issues at all with php5?
I noticed two other issues with my Zen-Cart Site and my new server with PHP5:

  1. HTML emails are not displaying correctly, see this thread http://www.zen-cart.com/forum/showthread.php?p=462015
  2. Tools-Template Selection-New language returns the folowing error:
    Catchable fatal error: Object of class queryFactoryResult could not be converted to string in /home/myaccount/public_html/admin/includes/functions/html_output.php on line 333, see this thread http://www.zen-cart.com/forum/showthread.php?p=437480&highlight=html_output.php+line+333.
    Averything else is ok. So far...
18 Nov 2007, 9:16 PM
#156
ofelixculpa avatar

ofelixculpa

New Zenner

Join Date:
Jul 2006
Posts:
43
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

X.O.:

I noticed two other issues with my Zen-Cart Site and my new server with PHP5:

  1. HTML emails are not displaying correctly, see this thread http://www.zen-cart.com/forum/showthread.php?p=462015
  2. Tools-Template Selection-New language returns the folowing error:
    Catchable fatal error: Object of class queryFactoryResult could not be converted to string in /home/myaccount/public_html/admin/includes/functions/html_output.php on line 333, see this thread http://www.zen-cart.com/forum/showthread.php?p=437480&highlight=html_output.php+line+333.
    Averything else is ok. So far...

Thanks for reporting. :bigups:

I have never tried to add a language, and I was using smtpauth for email already, so I wouldn't have caught those.

12 Jan 2008, 11:33 PM
#157
lyricwings avatar

lyricwings

Zen Follower

Join Date:
Oct 2006
Posts:
109
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

I LOVE this mod! It's one of my very favorite mods - it's a huge timesaver!

One question -- I can't get an order's Comments to display on the Index page, with the other information. In order to see Comments, I have to click the order to see it in full.

There is a space for Comments in the box on the right-hand side, but it is always empty (even if the order does contain a Comment)

It would be really helpful to be able to quickly go through the orders on the Index page to see if there were any customer comments that needed to be attended to right away.

Is there something I'm missing?

Thanks so much!

~LW

13 Jan 2008, 12:57 AM
#158
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

lyricwings:

I LOVE this mod! It's one of my very favorite mods - it's a huge timesaver!

One question -- I can't get an order's Comments to display on the Index page, with the other information. In order to see Comments, I have to click the order to see it in full.

There is a space for Comments in the box on the right-hand side, but it is always empty (even if the order does contain a Comment)

It would be really helpful to be able to quickly go through the orders on the Index page to see if there were any customer comments that needed to be attended to right away.

Is there something I'm missing?

Thanks so much!

~LW

This isn't really the place to discuss this, but I've created something like that for myself a couple years ago and it does make it sooo much easier.

I basically added all the important stuff from the "full" view into the "quick" view. I can update orders and see the full order list and see full shipping address from the quick list view.

I was going to release it but there is this intermittent bug that occurs some times.. and I can't figure out the exact steps to reproduce it. Unfortunately it's a seriously bad bug where sometimes when updating, it doesn't take the update, but leaves the form in weird state that if you click another button, it will update the last order with a null for status update. Null is not an allowable field in the filter list, so this causes the order to be completely hidden from all filter views, even the "All orders" view. The only way to fix it to edit the order in the database with phpmyadmin or a similar tool, which requires intimate database knowledge as well.

Here is a screenshot. It works 95% of the time without problems, even with filters. And I even created a version to work with my USPS autofill contrib, order edit, and info at a glance. But until I can figure out the problem it is use at your own risk.

10 Feb 2008, 12:00 AM
#159
dinix avatar

dinix

Zen Follower

Join Date:
May 2006
Posts:
102
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

Hello can you release the file (your file) full view to quick view??
tanks

26 Feb 2008, 11:30 PM
#160
lyricwings avatar

lyricwings

Zen Follower

Join Date:
Oct 2006
Posts:
109
Plugin Contributions:
0

Re: Info/Orders at a Glance Admin Contribution for 1.2.7 and 1.3.0.

It's been a while since I first posted this request, so I just wanted to check again -- is there any way to make the order Comments show up on the box on the right-hand side? Right now there is a space for Comments in the box on the right-hand side, but it is always empty (even if the order does contain a Comment)

Thanks -