rubygirl Posted June 22, 2006 Share Posted June 22, 2006 hello - I was wondering if anyone could tell me how to add the customer phone number to the order email that i receive so that I can call quickly instead of logging into to admin to get info. thanks! Link to comment Share on other sites More sharing options...
Terra Posted June 22, 2006 Share Posted June 22, 2006 In checkout_process.php you can modify the email to include a new variable - just have a look towards the end of the file and you'll see the PHP email code. all the best, Terra My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email ** Link to comment Share on other sites More sharing options...
rubygirl Posted June 22, 2006 Author Share Posted June 22, 2006 thanks Terra- i had found that already but not sure what or where to put the new code to pull the phone correctly ... can you help? Link to comment Share on other sites More sharing options...
Terra Posted June 22, 2006 Share Posted June 22, 2006 $email_order .= $order->customer['telephone']; to get you started - the rest of how to make it look pretty you should be able to work out by following the code as laid out in the file. all the best, Terra My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email ** Link to comment Share on other sites More sharing options...
Mjodvitnir Posted June 29, 2006 Share Posted June 29, 2006 Thank's for the help Terra, that was exactly what I needed. :thumbsup: Just to precisice what I have done, I'll show the code here: if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; $email_order .= $order->customer['telephone'] . "\n"; $email_order .= $order->customer['email_address']. "\n"; } $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n"; $email_order .= $order->customer['telephone'] . "\n"; $email_order .= $order->customer['email_address']. "\n\n"; I needed both the phone number and email in the confirmation emails, the reason for 2 lines is to make the overview better. Regards Mjodvitnir Link to comment Share on other sites More sharing options...
UncleSteve Posted July 2, 2006 Share Posted July 2, 2006 Thank's for the help Terra, that was exactly what I needed. :thumbsup: Just to precisice what I have done, I'll show the code here: snipped.. I needed both the phone number and email in the confirmation emails, the reason for 2 lines is to make the overview better. Regards Mjodvitnir I've achieved the above, and managed to to include the customers telephone number in the vendors email (requirement of most UK couriers before they'll accept a parcel for delivery). Any ideas on how I can include the customers delivery instructions (from the top of the customers email) in the vendors email please? ____________________________________________________________________ ____________________________________________________________________ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.