Fancier Invoice and Packing Slip V 2 for CE Phoenix Cart
========================================================

Designed for CE Phoenix Cart 1.1.0.6 and PHP 8.2.

What it does
------------

Replaces the standard admin Invoice and Packing Slip displays with matching,
print-friendly versions. No Phoenix core files are edited.

The invoice includes addresses, contact information, product attributes,
tax-exclusive and tax-inclusive prices, totals and a screen-only admin order
history. The packing slip uses the same visual style but contains no prices,
tax totals or payment information.

New installation
----------------

1. Upload the contents of the admin folder to your admin directory,
   preserving the directory structure.

3. Upload the contents of the supplied "catalog" folder to the root of your
   catalog, preserving the directory structure.

4. In the Phoenix admin, open an order and select Invoice or Packing Slip.
   The corresponding fancy document will open automatically.

There is no SQL to run and no existing file needs to be modified.

Upgrading from Fancier Invoice V 1
-----------------------------------

1. Replace admin/invoice_fancy.php with the new version.

2. Upload the new packing slip, language, stylesheet and redirect-hook files.

3. Remove the old hook file:
   catalog/includes/hooks/admin/sitewide/redirectInvoice.php

4. The old V1 installation asked you to append invoice CSS to:
   catalog/templates/override/static/user.css

   Remove everything between these two comments from that file:

   /* --- Invoice Paper Styling Start --- */
   /* --- Invoice Paper Styling Finish --- */

   V 2 uses its own admin/includes/fancy_document.css stylesheet, so the
   catalog user.css file is no longer changed.

Customising the appearance
--------------------------

Edit admin/includes/fancy_document.css. The colour used for the store name and
Print button is #556b2f. All document styles are isolated from the storefront.

Language
--------

All visible text is held in:

admin/includes/languages/english/invoice_fancy.php
admin/includes/languages/english/packingslip_fancy.php

To add another language, copy both files to the corresponding admin language
folder and translate the text on the right-hand side of each constant.

Notes
-----

The invoice number uses the two-digit year from the original order date followed
by the order ID. It therefore remains unchanged when an older invoice is
reprinted.

The customer telephone and countries are read from the historical order record,
not the current customer or countries tables.

The admin order history shown on the invoice is deliberately excluded from
printing so private admin comments cannot accidentally be handed to a customer.

Released under the GNU General Public License.
