You have chosen to sponsor your bid up to a maximum amount of .
Need to create a Zen Cart module that does the following:
- in Zen Cart admin, on the orders.php page add a new button next to 'invoice' and 'packing slip' buttons labelled 'send PDF'
- upon clicking this button, a popup prompts the user for an email address
- the invoice (from the file ADMIN-DIRECTORY/invoice.php?oID=XXXXX) is then turned into a PDF with the filename 'Invoice-XXXXX.pdf' (XXXXX being the correct invoice number) and emailed as an attachment to the email address that was entered into the popup
- the subject and body text of the email that is sent must be defined in a language file, so that they can be changed if required
NOTE: The format of the invoice PDF must match the format of ADMIN-DIRECTORY/invoice.php?oID=XXXXX - this PHP has already been modified into the correct format, see attachment.
NOTE: The PDF that is generated must support multiple pages, if the order contains sufficient products to make the invoice use more than one page.