This extension is not more maintained. Try to see Phoca Cart extension instead - e-commerce solution for Joomla! CMS. (See demo)
This article is obsolete. check out the updated article:
VirtueMart Invoice, Delivery Note and Receipt

Guide and files used on this site are not more supported.

 

This article describes how to install 'Invoice, Delivery Note, Receipt' addon for VirtueMart 1.1.0 (VirtueMart is created by Soeren Eberhardt, this addon was created by Ingemar Fällman, refactored for VirtuMart 1.1.x version and new PDF behaviour added by Jan Pavelka) in Joomla! 1.5.

The addon produces PDF Invoices, Delivery notes and Receipts from Orders created by VirtueMart users (customers).

 

alt

 

 

If you have installed Joomla!1.5 and VirtueMart 1.1 on your server, do following steps...

 

1. Download the following file from this server.

Download VirtueMart Invoice, Delivery Note, Receipt Addon

 

2. Copy 'admin.install_delivery_sql.php':

  • FROM 'com_virtuemart_IDnR_addon.zip/administrator/components/com_virtuemart/html/admin.install_delivery_sql.php'
  • TO your server: 'administrator/components/com_virtuemart/html/admin.install_delivery_sql.php'

 

3. Login as administrator into your site in administrator area. Copy the following URL link (change the [your-site] to your own site), paste it into the address bar of your browser and click enter on your keyboard:

  • [your-site]/administrator/index2.php?option=com_virtuemart&page=admin.install_delivery_sql.php

This script install necessary data into your database. After successfull installation of this data remove the 'admin.install_delivery_sql.php' FROM your server.

 

4. Copy the following files into your server:

  • FROM 'com_virtuemart_IDnR_addon.zip/administrator/components/com_virtuemart/classes/ps_delivery.php'
  • TO your server: 'administrator/components/com_virtuemart/classes/ps_delivery.php'
  • FROM 'com_virtuemart_IDnR_addon.zip/administrator/components/com_virtuemart/classes/ps_order_delivery.php'
  • TO your server: 'administrator/components/com_virtuemart/classes/ps_order_delivery.php'
  • FROM 'com_virtuemart_IDnR_addon.zip/administrator/components/com_virtuemart/pdf/delivery.pdf.php'
  • TO your server: 'administrator/components/com_virtuemart/pdf/delivery.pdf.php'
  • FROM 'com_virtuemart_IDnR_addon.zip/administrator/components/com_virtuemart/pdf/phoca.tcpdf.php'
  • TO your server: 'administrator/components/com_virtuemart/pdf/phoca.tcpdf.php'
  • FROM 'com_virtuemart_IDnR_addon.zip/libraries/joomla/document/printpdf/index.html'
  • TO your server: 'libraries/joomla/document/printpdf/index.html'
  • FROM 'com_virtuemart_IDnR_addon.zip/libraries/joomla/document/printpdf/printpdf.php'
  • TO your server: 'libraries/joomla/document/printpdf/printpdf.php'
Notice:

The 'com_virtuemart_IDnR_addon.zip' includes the standard Joomla! 1.5 folder structure, so you can copy whole folders into your server (If you do it, don't forget that the 'admin.install_delivery_sql.php' is included and will be copied too. It should be removed after successful database data intsallation.)

 

5. Modify (edit in text editor) the following files (Before you do it, please backup your files) on your server:

 

File: 'administrator/components/com_virtuemart/languages/common/english.php'
Paste the following code (without tags) into this file (don't forget to add the comma (,) after the last item before these new items)

  // Delivery
'VM_DELIVERY_TAB_LBL' => 'Delivery',
'VM_DELIVERY_NOTE' => 'Delivery Note',
'VM_DELIVERY_RECEIPT' => 'Receipt',
'VM_DELIVERY_INVOICE' => 'Invoice',
'VM_DELIVERY_NUMBER' => 'Deliveryno.',
'VM_DELIVERY_EXTENT' => 'Extent',
'VM_DELIVERY_OBLITERATE' => 'Obliterate',
'VM_DELIVERY_OBLITERATED' => 'Obliterated',
'VM_DELIVERY_OBLITERATED_BY' => 'Obliterated by',
'VM_DELIVERY_STATE' => 'State',
'VM_DELIVERY_EXTENT_FULL' => 'Full delivery',
'VM_DELIVERY_EXTENT_PARTIAL' => 'Partial delivery',
'VM_DELIVERY_ADD' => 'New delivery',
'VM_DELIVERY_VALUE' => 'Product value',
'VM_DELIVERY_NOT_COMPLETE' => 'Not all products are delivered!',
'VM_DELIVERY_COMPLETE' => 'All products are delivered.',
'VM_DELIVERY_SKU' => 'SKU',
'VM_DELIVERY_NAME' => 'Name',
'VM_DELIVERY_DELIVER' => 'Deliver',
'VM_DELIVERY_DELIVERED' => 'Delivered',
'VM_DELIVERY_QUANTITY' => 'Quantity',
'VM_DELIVERY_EDIT' => "Change delivery",
'VM_DELIVERY_CANCEL' => "Cancel",
'VM_DELIVERY_SAVE_CHANGES' => "Save changes",
'VM_DELIVERY_SAVE' => "Save",
'VM_DELIVERY_INVOICE_DUE' => "Invoice is due",
'VM_DELIVERY_SEND_INVOICE' => "Create invoice",
'VM_DELIVERY_PREPAIED' => "Customer has prepaid the order.",
'VM_DELIVERY_DAYS' => "days",
'VM_DELIVERY_DELAY_INTEREST' => "Delay interest",
'VM_DELIVERY_REALLY_OBLITERATE ' => "Do you realy want to obliterate this delivery?",
'VM_DELIVERY_PRINT_DATE_LBL' => "Date",
'VM_DELIVERY_PRINT_ORDER_DATE_LBL' => "Orderdate",
'VM_DELIVERY_PRINT_BILL_DATE_LBL' => "Invoicedate",
'VM_DELIVERY_PRINT_DUE_DATE_LBL' => "Duedate",
'VM_DELIVERY_PRINT_BILL_TERMS_LBL' => "Terms of payment",
'VM_DELIVERY_PRINT_OVERDUE_INTEREST_LBL' => "Delay interest",
'VM_DELIVERY_PRINT_DELNOTE_NUMBER_LBL' => "Del.note no.",
'VM_DELIVERY_PRINT_ORDER_NUMBER_LBL' => "Order no.",
'VM_DELIVERY_PRINT_BILL_NUMBER_LBL' => "Bill no.",
'VM_DELIVERY_PRINT_SHIP_TO_LBL' => "Shipment address",
'VM_DELIVERY_PRINT_BILL_TO_LBL' => "Billing adress",
'VM_DELIVERY_PRINT_PAGE_LBL' => "Page",
'VM_DELIVERY_PRINT_SHIPPING_CARRIER_LBL' => 'Shipping Carrier',
'VM_DELIVERY_PRINT_SHIPPING_MODE_LBL' => 'Shipping Method',
'VM_DELIVERY_PRINT_YOUR_REF_LBL' => 'Your reference',
'VM_DELIVERY_PRINT_OUR_REF_LBL' => 'Our reference',
'VM_DELIVERY_PRINT_SKU_LBL' => 'SKU',
'VM_DELIVERY_PRINT_DELIVERED_LBL' => 'Del',
'VM_DELIVERY_PRINT_QUANTITY_LBL' => 'Qty',
'VM_DELIVERY_PRINT_REMAINING_LBL' => 'Rest',
'VM_DELIVERY_PRINT_UNIT_PRICE_LBL' => 'Price/Unit',
'VM_DELIVERY_PRINT_TOTAL_PRICE_LBL' => 'Price',
'VM_DELIVERY_PRINT_TOTAL_PRICE_WITHOUT_TAX_LBL' => 'Price (without tax)',
'VM_DELIVERY_PRINT_PRODUCT_LBL' => 'Product',
'VM_DELIVERY_PRINT_VENDOR_ADDRES_LBL' => 'Address',
'VM_DELIVERY_PRINT_VENDOR_PHONE_LBL' => 'Phone',
'VM_DELIVERY_PRINT_VENDOR_Fax_LBL' => 'Fax',
'VM_DELIVERY_PRINT_VENDOR_EMAIL_LBL' => 'E-mail',
'VM_DELIVERY_PRINT_VENDOR_URL_LBL' => 'Internet',
'VM_DELIVERY_PRINT_SHIPPING_LBL' => 'Shipping and Handling Fee',
'VM_DELIVERY_PRINT_SUBTOTAL_LBL' => 'Subtotal',
'VM_DELIVERY_PRINT_TOTAL_LBL' => 'Total',
'VM_DELIVERY_PRINT_COUPON_DISCOUNT_LBL ' => 'Coupon Discount',
'VM_DELIVERY_PRINT_DISCOUNT_LBL ' => 'Discount',
'VM_DELIVERY_PRINT_FEE_LBL' => 'Fee',
'VM_DELIVERY_PRINT_TAX_LBL' => 'Tax',
'VM_DELIVERY_PRINT_SHIPPING_TAX_LBL' => 'Tax (Shipping)',
'VM_DELIVERY_PRINT_SIGNED_LBL' => 'Signed',
'VM_DELIVERY_PRINT_OBLITERATED_LBL' => 'OBLITERATED',
'VM_DELIVERY_PRINT_TO_PAY_LBL' => 'To pay',
'VM_DELIVERY_PRINT_INVOICE_INFO' => 'Enter bill number (%s) when you pay this bill.',
'PEAR_LOG_CRIT' => 'Critical',
'PEAR_LOG_ERR' => 'Error',
'PEAR_LOG_WARNING' => 'Warning'
// END Delivery

Other Langages: Download VirtueMart Invoice, Delivery Note, Receipt Addon Languages

 

File: 'administrator/components/com_virtuemart/html/order.order_print.php'
Row: 170 + (in VirtueMart 1.1.5 it is a line cca 191)
Paste the following code (without tags) after row 170 (after $tab->endTab(); and before $tab->endPane();)

  // Delivery
$tab->startTab$VM_LANG->_('VM_DELIVERY_TAB_LBL'), "delivery_pane" );
require_once(
CLASSPATH.'ps_order_delivery.php');
$tab->endTab();

 

For sending Invoice, Delivery Note, Receipt via Email see the
'Sending Invoice, Delivery Note, Receipt via Email' addon.

 

Notice:
On some servers only PNG or JPG logo format will be displayed in PDF. Don't use GIF or other unsuported formats.

If you have an order in your VirtueMart, go to Orders » List Orders. Click on Order Number of an Order and you should see the folder Delivery here. You can create Invoices, Delivery notes and Receipts here and print them as PDF document.

It can happen that after some action in Delivery folder (clicking on button), you will be redirect to the first folder (Order Status Change). Just click on Delivery folder again to process the action.
TCPDF error: Some data has already been output, can't send PDF file

PDF document needs to have header without any error, sometimes it can happen, that some error is rendered before the document header. Then PDF cannot be displayed in browser. In such case check out your Joomla! and VirtueMart installation if it does not produce php errors.

Mostly this is caused by wrong encoding of the files - e.g. language file. Check if your langauge file is saved as UFT-8 without BOM encoding. You can check it with text editor like e.g. Notepad++ is. Open the language file (e.g. administrator/components/com_virtuemart/languages/common/english.php) in Notepad++, click on Encoding and select Encoding in UFT-8 without BOM. And save the file.
alt

 

 
alt

 

 
alt