
Originally Posted by
cowboyfred
Got it to work in the email.
Here is how i did it:
go to:
email_header.txt
insert:
Telephone: {customers_phone}
E-mail: {customers_email}
Getting it to go to the pdf is not a big deal. Change admin/send_pos.php (inserting the code in Red)
Around line 189:
Code:
$query=mysql_query("SELECT p.orders_products_id, p.products_model, p.products_name, p.final_price, p.products_quantity,
o.customers_name, o.customers_street_address, o.customers_city, o.customers_postcode, o.customers_state, o.customers_country, o.customers_telephone, o.customers_email_address,
o.delivery_name, o.delivery_company, o.delivery_street_address, o.delivery_city, o.delivery_state, o.delivery_postcode, o.delivery_country,
o.billing_name, o.billing_company, o.billing_street_address, o.billing_city, o.billing_state, o.billing_postcode, o.billing_country,
o.payment_method, o.date_purchased, o.currency, o.customers_id, o.orders_id, o.shipping_method, o.orders_status, o.customers_suburb, o.delivery_suburb, o.billing_suburb, o.customers_company
FROM ".TABLE_ORDERS_PRODUCTS." as p, ".TABLE_ORDERS." as o
WHERE
p.orders_id=o.orders_id
AND
p.orders_products_id='$idk[$i]'")
or die('Failed to connect database: 3');
// $shipway = '';
while($row4=mysql_fetch_array($query, MYSQL_NUM))
{
$strCustomerTelephone = $row4[11] . "\n";
if ($row4[37] != '' && $row4[37] != NULL)
$adres = $row4[37]."\n";
else
Then again, around line 279:
Code:
$wielowymiar[$i][0]=$subk[$i]; //id_subcontractors
$wielowymiar[$i][1]=$row4[30]; //id_customers
$wielowymiar[$i][2]=$idk[$i]; //id_produktu zamowionego
$wielowymiar[$i][3]=$zawartosc2[$i]; //zawartosc
$wielowymiar[$i][4]=$row4[31]; //id_orders
$wielowymiar[$i][5]=$row4[13]."\n".$adres_deliver . "\n" . $strCustomerTelephone;
$wielowymiar[$i][6]=$row4[20]."\n".$adres_biling;
$wielowymiar[$i][7]=$row4[32]; //shipping
Keep in mind that much of this code is written in Polish, with Polish comments, so you may have to do a little translation if you want to understand variable names and comments.
Brad Scott
ClermontSoftware.com
Bookmarks