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 61 to 80 of 192
4 Jun 2006, 11:50 AM
#61
woodymon avatar

woodymon

Totally Zenned

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

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

Hi Reesy-

I understand updating your mod for every verison of Zen Cart can be a frustrating expereince. I myself would not have that kind of patience. Thanks for providing this mod. With that said below is just for the constructive good and sorry in advance for the long post...

I've installed the latest version of the mod (1.4.4.4 or whatever it is called) and noted many errors. Me thinks you went backwards and edited one of your early mod versions for 1.3.0. Can you confirm?

I previously reported you had packaged non 1.3x version files into your 1.3.0.1 directory. I assumed thgat would be repaired by now but apparently not.

Notedly..

The 1.3.0.1 directory in the most recent mod release once again includes an edited old versions of an /admin/orders.php, and /admin/index.php, and the orders.php languages file from a previous version of Zen Cart. (I discovered by doing a file compare on each).

Also...

<span class="code"> has returned. it needs removed.

The orders_id now displays twice for each order on the orders listing page.

There are other errors... Since I have repaired the issues, rather than list all of them here it is easair if I attach my fixes to this thread (first I have to edit out custom code specific to my site). Hope you don't mind.

To repeat... I advise everyone to NOT overwrite their core admin files (or any other core files) provided in a mod package. It is better to do a backup and then compare the diffs between the core code and the custom mod file and then only merge when/where appropriate. That is how I discovered the incorrect file above.

On a related note I appreciate the nicely designed HTML readme. However the current structure of the HTML readme makes it difficult to locate and copy snippets for each Zen cart version. I think it would be better if the mod code for each Zen Cart version was completely separated from each other. And better if no blank lines between every line of code.

As one that has heavily customized my /admin/index.php and orders.php files, I would prefer if the updated mod code was provided in snippets within a plaint text file for each version, with directions where to manually insert and/or update existing core code.

And even better, when making minor mod changes (e.g. for going from v1.3 to 1.4 ) , it would best if could provide just provide the small snippets of 'updated' code changes. Then the compare and merge process would be much more simple.

And yes the index.php22 file is once again included in latest version. A running inside joke I am beginning to think ;)

Also I recommend PMing DrByte to remove the "1.2" version number from the mod title heading in the downloads section.

Finally can anyone please describe the function of the following code in orders.php

<!-- header_eof //-->
<?php // ====> BOF: INFO AT-A-GLANCE <==== ?>	
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<?php // ====> EOF: INFO AT-A-GLANCE <==== ?>
<!-- body //-->

And anyone find an easy solution regarding product names with apostrophes (the latest versions of this mod still don't like the apostrophe).

Woody

4 Jun 2006, 11:55 AM
#62
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.

Woodys fixes to "Admin At A Glance 1.4.4.4"

for Zen Cart 1.3.0.1 only <<<<<<<<
06.04.06

Backup first.

REPEAT: This is for the mod for Zen Cart 1.3.0.1 ONLY!!!

FIXES FOR /admin/orders.php

Be sure you are working from the files provided in the official Zen cart 1.3.0.1 distribution or from your own customized versions (from backup).

Sorry: I have no line numbers to offer you as I am working from fairly customized files. It should be clear where to make edits. Where needed I included snippet of code above and below to help guide you in making inserts/changes...

4 Jun 2006, 12:07 PM
#63
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.

And before anyone has a chance to ask the attached file below should have been named "Woody's fixes to Info/Orders at a Glance Admin v.1.4.4.4 for Zen Cart v.1.3.0.1.txt"
;)

4 Jun 2006, 1:09 PM
#64
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.

Changes

Besides the 1.3.0.1 code changes for /admin/orders.php I just provided some changes are required in readme.

Should be:

How do I install this contribution?

   Upload 2 new files, overwrite or modify **3** existing files, and you are done.

(change from: "overwrite or modify 2 existing files").

The files:
/admin/includes/languages/english/orders.php
/admin/index.php
/admin/orders.php.

4 Jun 2006, 1:29 PM
#65
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

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

Woody Im figuring out whats going on here, please PM me rather than post as you are contradicting yourself in a number of posts above.
Please also read reply 65 of this thread and your fix is incorrectly named, theres one too many 4s on the end.

4 Jun 2006, 1:52 PM
#66
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.

Reesy:

Woody Im figuring out whats going on here, please PM me rather than post as you are contradicting yourself in a number of posts above.
Please also read reply 65 of this thread and your fix is incorrectly named, theres one too many 4s on the end.

Reesy-

Yes I see that there is one too many 4's at the end of the filename. You named the file 1.4 and when I downloaded the file it was named 1.4.4. And I thought I saw another reference to 1.4.4.4. And I did observe your post regarding the download area script automatically appending the additional 4 to the filename. I was attempting to make humour of the ongoing battle with the constant versioning issues. Guess that fell flat and sorry if I stepped on any toes.

Anyway I don;t care about the filenames. I care about the mod running correctly and more imprtantly the package getting distributed with the correct core file updates (aka quality control). I am all ears as to the perceived "contradictions" and will immediately correct if brought to my attention. In the meantime I need to turn to other endeavors. Thanks for the follow-up and good luck.

Woody

5 Jun 2006, 3:40 AM
#67
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

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

Super Orders is a massive collection of customizations mixed with new
features. Because it covers so many files, I'll break down the features
according to which file they appear in. All of these files are located in
the /admin folder.

Each feature description begins with a new line. All features are in
addition to the normal files; nothing was removed.

super_orders.php

Location: Admin > Customers > Adv. Order Management

The orders listing screen now has shortcut buttons on each order line that
match the buttons that appear in the sidebox, saving an extra click.

Added customer shortcuts, one to find all orders by the customer, another
to pull up their profile edit screen.

The original "edit" button in the sidebox has been replaced with "details."
"edit" now goes to a full editing system (see super_edit.php).

The detail screen (again, used to be the "edit" button) includes
shortcuts to edit the order, pull up the invoice and packing slip, and a
quick navigation system to pull up the detail screen for any other order.

Each product has a checkbox next to it, and under the products in an order
(detail screen), you'll find a button that says "Split Packing Slip."
Select the products that are being shipped and press the button. The screen
will advance to the packing slip, with a green check next to those products
you selected, and a red X next to those you did not. Click the logo in
the upper righthand corner to invert the checkmarks and X's; you can do
this as many times as you want.

You'll find the all-new payment tracking system on the details screen. It
will only appear if the order is a PO or check payment ("purchaseorder" or
"moneyorder" module codes). If the value of a check is not equal to the
order total, another check-submission form will appear to input a second
check number (from the customer if they underpaid, and a rebate
check from you if the customer overpaid). There is no value line as the
system assumes the second check will be for the remaining balance or overage.
Each step will only appear after the last is completed, and data is
timestamped each time it's entered.

super_edit.php

Location: Admin > Customers > Adv. Order Management > "Edit Order"

Ack: super_edit.php is based on Edit Orders v1.59 by ECDiscounts
(the original contrib doesn't work with the newest versions of
Zen-Cart, so I don't recommend using it)

From here you can edit absolutely anything about the order. You can even
change the payment method (note that payments are not resubmitted if
switching to an online module). All the fields are pretty self-explanatory.

To remove payment information (P.O., check, refund check, or balancing
check), simply remove all the data for that entry and it will be deleted
from the database. This a permanent delete, that's why all the lines must
be empty, so be careful.

If you make a mistake entering check or PO data in super_orders.php, you
can change it here. The "Last Modified" timestamp will be updated to
reflect this.

super_shipping_label.php

Location: Admin > Customers > Adv. Order Management > "shipping label"
This is taken directly from the "Basic Shipping Label" contrib available
in the Zen-Cart downloads section. I changed a filename, added some
defines for language interoperability, and recreated the button lable so
that it matches the others, otherwise it's exactly the same.

If it doesn't fit your requirements exactly, the label is super-easy to
modify. Just edit admin/super_shipping_label.php; the entire thing is HTML
except for the address data displayed. Adjust to suit your needs.

Ack: I can't credit the author because there is none listed in the file!
If you wrote this and want a mention here, PM me!

super_invoice.php

Location: Admin > Customers > Adv. Order Management > "invoice"

If the order payment is a PO, the PO details will appear next to the
address information after the PO number has been entered. The order must
be placed using the purchase order module included with this contrib. The
details appear regardless of whether a PO number was entered or not, but
the number will be included once you have entered it.

Added the word "Invoice" to the header (P.O. users typically require this)

Put the billing address in better position for a windowed envelope.

Displays the Federal Tax ID and removes the tax lines (if applicable; see
step 3 of "Offline Setup" instructions).

Clipped the shipping text to remove the details in parentheses.

Added "Amount Paid" and "Balance Due" lines. Each displays either the
order total or zero, depending on the payment method.

super_packingslip.php

Location: Admin > Customers > Adv. Order Management > "packing slip"

Now displays the shipping method with other order info (in case different
shipping methods have different priorities, e.g. Rush shipping).

Added the word "Packing Slip" to the header.

Put the shipping address in position for a windowed envelope (I know, it
usually goes in the box, but you never know).

If there are 4 or less products on an order, the packing slip will
include the product image. The 3-product limit prevents the packing slip
from covering more than 1 page. NOTE: You must have a different model
number for each product in order for this feature to work!

super_batch_forms.php

Location: Admin > Customers > Batch Form Print

Ack: super_batch_forms.php is based on "easy-batch-printing"
written by PandA.nl (Forum PM: paulm)
http://www.zen-cart.info/downloads/easy-batch-printing_v1.0.zip

This file allows you to print invoices and packing slips in bulk. It was
ported from the "dark side," but the original code remains largely in-tact,
as it works perfectly in the latest versions of Zen. The Super Orders
version simply integrates the code more seamlessly into the admin, and adds
a few more printing options.

The way it works is ingenious; it relies on a browser's tendency to print
frames on separate pages (they all do it at this point, most by default).
You select the form you want, for which orders, and the number of copies,
and the code spits out a new window with the right numbers, each one split
into a different frame. Then just press print on your browser. No PDF
formatting (read: a nightmare), and a lot less clicks than the manual way.

The number of displayed orders is still defined by the switch in the Admin
[Admin > Configuration > Maximum Values >
"Maximum Display of Orders on Orders Page"],
however it multiplies that value by 2 and does some math-based
formatting to give you two columns of orders. That means minimal
searching and clicking!

super_batch_status.php

Location: Admin > Customers > Batch Status Update

This file allows you to update the status of multiple orders at once.
The available options are the same ones available from the order details
page. Select the new status, add any comments, and whether or not to
notify the customer (set to "off" by default to avoid unintentional mass
mailings) and you're all set!

The number of displayed orders here is also defined by the "Maximum
Display of Orders on Orders Page" switch in the Admin, multipled by 2.

super_await_pay_report.php

Location: Admin > Reports > Orders Awaiting Payment

This report displays all your outstanding payment paperwork. Each radio
button will search for orders that are missing the indicated information
(e.g. P.O. orders that have not had a PO entered, check orders without an
entered check, etc).

By default it will look for orders older than 30 days without the specified
information (typical timeframe to define a payment as "late"), but you can
include orders within 30 days by clicking the indicated box.

The print format is just as its name implies, prints nicely on 8.5" x 11"
paper. You can click the title in the print format to return to the
regular admin display.

super_cash_report.php

Location: Admin > Reports > Cash Report

Similar to the "Awaiting Payment" report, the Cash Report display those
payments that have been applied to an order (i.e. payments received in your
office).

PO's are not an option because they are merely a promise to pay, not
actual cash. PO checks are included in the "Check/Money Order" search.

The dropdown displays all the payment methods currently applied to orders
in your system. The method name is first, with the module code in
parentheses (in case you have duplicated payment methods). If you wish to
remove the module code, you'll find the appropriate line (and instructions)
in admin/super_cash_report.php around line 155.

In addition to all the unique payment methods used on orders in your system,
there is an option to display refund checks that your company releases.

You won't find a "Balance Checks" option because those checks are lumped
right in with the rest of them in the "Check/Money Order" option.

Like the Awaiting Payment report, the print format displays a nice print
layout. You can also click the title in the print format to return to the
regular admin display.

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

5 Jun 2006, 6:42 AM
#68
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

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

oops! my mistake kelvyn..accidentally & wrongly pasted thru the reply session!:D
sorry guys...just ignore it!

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

5 Jun 2006, 7:02 AM
#69
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

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

to woody & ressy,

i don't know what was going on here! also don't know the woody's update is for what...may be the modification to the file is because its incompatibility with the Super Orders v1.3 by BlindSide! i also don't know either BlindSide still around to support the mod. as far as i know, BlindSide was still very busy with the commitments! :blush: i think i'll install the Super Orders now and try it myself...any errors, i'll post thru these forum!:thumbsup:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

5 Jun 2006, 8:05 AM
#70
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

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

It seems like this is going round in circles a bit....

If someone can attach the relevant file to this thread or email it to me ill have a look.
I have realised (now its not 2am when most open source code is written lol) that there ARE many mistakes in the readme and files as woody says and also the problems that kelvyn had.
They are due to things like ?> not being there and a few other weird things that shouldnt be there. Woodys fixes above just strips out the extra table heading and column I think.

In answer to your question about the class Woody its for the positioning of the javascript box when you scroll over the icon.

I will update the contrib later today and I PMd Ajeh 3 days ago about removing the V1.2 from the file name. I did notice that someone did delete the older versions.

Kelvyn one reason I had asked people to PM me was because I didnt want to create an 8 page monster of a thread like this one but everyone ignored my polite requests. Oh well.

Woodys fixes are nothing to do with the super orders contrib.
We will get there.......... one day.

5 Jun 2006, 10:05 AM
#71
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.

The attachment I provided contains the OFFICIAL /admin/orders.php file for Zen Cart version 1.3.0.1 integrating the custom code provided in Reesy's Info/orders at a Glance Admin 1.4.

The abbreviated readme (applicable only to the attachment) is not for any other mod.

The file Reesy is distributing in the 1.4 package contains a directory named "1.3.0.1". However the orders.php file included is NOT based on 1.3.0.1 core file. I thought I was doing the community a service by reporting such. Apparently not. Oh well.

Anyway just run WinMerge or Beyond Compare to compare the admin/orders.php file in 1.4 versus the offical Zen cart version and it will all become more clear.

I fixed the code a bit (see below) but it contains NO fixes in regards to Super Orders compatibility (and I never indicated such).

MY CHANGES to /admin/orders.php

  1. Used official Zen Cart 1.3.0.1 orders.php as base code, inserting Reesy's 1.4 mod specific code where required.

  2. Added "Amended with Info at Glance Admin" below the ID in file header.

  3. Minor change to the Table Heading. I use an exisiting "Products" language define rather than create a new "Info" define. Of course you don't have to do this.

  4. Added several   entities to the header to separate the columns a bit.

  5. Most importantly I removed echo $orders->fields['orders_id'] which duplicates the order number on each order entry line. The order id number is already at the beginning of each line so why repeat?

  6. Repaired a missing php opening and closing tag (php code was incorrectly wrapped into html code).

  7. Fixed the location of a TD closing tag.

So the new code should look like:

 <td class="dataTableContent" align="center"><?php echo zen_datetime_short($orders->fields['date_purchased']); ?></td>

<?php // ====>; BOF: INFO AT-A-GLANCE <==== ?>

<td class="dataTableContent" align="center">
<b>
<?php  
$artikel = "";

To conclude the entire contents of my attachment and readme is correct for Zen Cart 1.3.0.1 shops. Several folks have reported back the same. Sorry I can't just provide my entire orders.php file as it is heavily customized for my shop. Again do a file compare and the corrections are very evident.

Today I implemented additional changes to the 1.4 mod version to fit my own presentation needs. So essentially it is now a completely different mod. Thus as requested I will initiate a new thread when ready for distribution. Until then feel free to PM if you need further details.

Woody

5 Jun 2006, 10:21 AM
#72
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

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

Thanks for posting that Woody, as it gives me a nice checklist, ive done all that and made similar changes to the index file. Good idea using an existing define btw :thumbsup:
I downloaded fresh files for all the sites, made the changes and retested them on my test site.
Point 6 is most important as it will give you a parse error.
The order number was repeated just to make sure for correlation purposes but of course you dont HAVE to have it there and ive stripped it out of the files and readme.
Thanks

5 Jun 2006, 1:01 PM
#73
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.

Reesy:

The order number was repeated just to make sure for correlation purposes but of course you dont HAVE to have it there and ive stripped it out of the files and readme.

Not sure what is meant by"correlation purposes". Having the the order_id in the /admin/index.php code is desired but is unneeded in /admin/orders.php. Just my $0.02. Hope that makes sense.

5 Jun 2006, 1:21 PM
#74
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

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

kelvyn:

Ah, you see, this is nice. Teamwork! I was worried that people were taking offense.
I think this is the way forward - someone comes up with a great idea, others can tweak it. Sometimes, the original author will take offence, but I think in this case, it all worked out nice :)

No offense taken here, but I REALLY shouldnt upload anything at 2am... lessons learnt.
Im looking forward to Woody's contrib too.

Woody,
I meant for correlation purposes to make sure you have the right order, as sometimes following a row along you can easily drop down or go up and make a mistake. Some people might like it, some people dont.
Clear as mud im sure :blink: LOL.

5 Jun 2006, 8:08 PM
#75
sgflowers avatar

sgflowers

Totally Zenned

Join Date:
Jan 2004
Posts:
508
Plugin Contributions:
0

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

tajul_ashyqin:

to woody & ressy,

i don't know what was going on here! also don't know the woody's update is for what...may be the modification to the file is because its incompatibility with the Super Orders v1.3 by BlindSide! i also don't know either BlindSide still around to support the mod. as far as i know, BlindSide was still very busy with the commitments! :blush: i think i'll install the Super Orders now and try it myself...any errors, i'll post thru these forum!:thumbsup:

if you get both working together can you attach admin/super_orders.php to your post

5 Jun 2006, 11:16 PM
#76
baelzebub avatar

baelzebub

Zen Follower

Join Date:
Mar 2005
Posts:
104
Plugin Contributions:
0

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

Hi there,
Sorry if it's been asked but i used the thread search and my own beedy little eyes but couldn't find it.
Is there a way to show the UPS/usps/etc. numbers on the admin page using this so instead of going into edit you can just click on the UPS number in Admin to see if it's been delivered?
Using v125e_Ty_Package_Tracker to input the data into the customers order data if that helps.
Or does anyone know of a way?
Sorry if this has been asked a million times but i have been away for a while.

Thanks for reading and any responses.

Bael.

6 Jun 2006, 12:41 AM
#77
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

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

now i got the clearer point here! :thumbsup: thanx to ressy and woody for the explanation! till now, my version of info at a glance working very well! i did comparison using winmerge to insert all the codes! i'll try woody's fixes now...:wink2:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

6 Jun 2006, 1:03 AM
#78
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

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

nice contribution, woodymon! now i know what you are talkin about...looks much better now especially the spacing!:thumbsup:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

6 Jun 2006, 2:24 AM
#79
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

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

sgflowers:

if you get both working together can you attach admin/super_orders.php to your post

I will look at this super_orders.php sometime soon for those that are using that.
Bael I dont use UPS, im not even in the States so cant help you on this one but at the bottom of the readme is info you have to change, wait a sec for V1.5 to be added.

6 Jun 2006, 12:36 PM
#80
jayson_gurney avatar

jayson_gurney

Zen Follower

Join Date:
May 2006
Location:
UK
Posts:
101
Plugin Contributions:
0

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

Hi can anyone help a non PHP programmer fix the following error. After installing the module as per the instructions included in the module I get the following error message when i click on the Order tag in my admin panel.

Parse error: parse error, unexpected '<' in /srv/www/htdocs/admin/orders.php on line 721

attached is a zipped text copy of the said file - any help will be gratefully received.

:wacko: