Contributions

Features (Category Index)
Search: 

Customer View & Print Invoice at Checkout Succes

tar.gz Format
OK guys this is my first osc contribution. It works great on my site and one of my customers as well.

This contribution will place the invoice button from admin
on checkout_success.php along wih order # and a message of instruction.
the invoice.php that pops up from this button will be located in
catalog/ and has Print Invoice Links top and bottom.

My only warning is that I only am using English with US Currency!
Not sure if that will matter.

invoice.php for catalog/ is included
file modification are in the Readme and
corresponding .txt files in the appropriate folders as well as button_invoice.gif

Hope this is Helpful!

Enjoy

"To the man who only has a hammer in his tool box, every
problem is a nail!"

Russ McCabe
russmcduck osc Forums
russmc@twrol.com
Sorry if I lack support on this, I am out of town allot.
Any help would be awsome!

Expand All / Collapse All

Security Fix Andy LaFontaine 7 Jul 2004

The current solution allows anyone to view any order on the system by simply modifying the link parameters. The admin invoice being used was never setup to verify user access. As well, the invoice was not displayed using SSL if your system is configured that way. The following text file describes some simple standard code to add to ensure invoices are only viewed by proper users.

Fixed Security Flaw in invoice.php Ryan Walker 17 Jun 2004
Customer View & Print Invoice at Checkout Succes Russell McCabe 1 Mar 2003

Note: Contributions are used at own risk.