A quick way to do this on invoice.php is to change:
PHP Code:
$oID = zen_db_prepare_input($_GET['oID']);
To read:
PHP Code:
$oID = zen_db_prepare_input($_GET['oID']);
$sql = "SELECT o.customers_id, c.customers_fax from " . TABLE_ORDERS . " o, " . TABLE_CUSTOMERS . " c WHERE c.customers_id= o.customers_id and o.orders_id = '" . $oID . "'";
$chk_customers_fax = $db->Execute($sql);
$customers_fax = $chk_customers_fax->fields['customers_fax'];
Now you can use:
$customers_fax
anywhere you want on the invoice.php
The same thing can be done on the packingslip.php ...
Bookmarks