You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Customers phone number is not showing on the order confirmation or any other order confirmation email.
This is a required input field when shipping with FedEx or UPS.
Where can I modify or turn on to have the customers phone number show up on the order emails.
Thanks
Pall
Offline
Hi Pall,
if you look in Location: System Dashboard > System > Displays > Display Includes.... Order Summary (Order Confirmation)
Do you have a listing in the
// +-- // | Print the billing information. // +--
section for phone?
if not this is what mine looks like
// +-- // | Print the billing information. // +-- print '<div class="regtablehead">Billing Information</div>' . $eol . $eol; print '<table id="BILLINFO" class="regtable">' . $eol . $eol; $address = array('fname' => $order['order']['fname'], 'lname' => $order['order']['lname'], 'company' => $order['order']['company'], 'addone' => $order['order']['addone'], 'addtwo' => $order['order']['addtwo'], 'city' => $order['order']['city'], 'stateprov' => $order['order']['stateprov'], 'country' => $order['order']['country'], 'postalcode' => $order['order']['postalcode']); $address = $this->include_namespace('core','getaddress',array('address' => $address, 'format' => 'XHTML')); print '<tr class="regtable">' . $eol; print '<td class="regtable" style="width: 50%"><p class="strong">Billing Address</p><p>' . $address . '</p></td>' . $eol; print '<td class="regtable" style="width: 50%">' . $eol; if (!(empty($order['order']['email']))) { $email = $this->xhtml_encode($order['order']['email']); print '<p class="strong">Email Address</p><p>' . $email . '</p>' . $eol; } // End of if statement. if ((!(empty($order['order']['phone']))) && ($order['order']['phone'] != '0000000000')) { $phone = $this->xhtml_encode($order['order']['phone']); print '<p class="strong">Telephone Number</p><p>' . $phone . '</p>' . $eol; } // End of if statement. if (!(empty($order['order']['invoice_email']))) { $email = $this->xhtml_encode($order['order']['invoice_email']); print '<p class="strong">Invoice Email Address</p><p>' . $invoice_email . '</p>' . $eol; } // End of if statement. print '</td>' . $eol; print '</tr>' . $eol; print '</table>' . $eol . $eol;
Cheers,
Bruce.
Offline
The phone number shows up by default on the order confirmations. Unless the phone number is set to '0000000000', which it will be for PayPal Express Orders (PayPal doesn't give the store the phone number).
Offline
Thank you Bruce and Nick.
I should have been a little more clear on my request.
I am using the BOM mod and the drop shipper emails do not have the phone number, where it is probably needed the most.
The order confirmation does have an email, but it also has pricing that I am not interested in sending to the drop shipper.
In doing more searches I came across a solution from member gbaiiley that seems to work.
https://forum.kryptronic.com/viewtopic. … 30#p127530
Thanks for your helps.
Offline
The solution linked to in this post was for version 7. Can anyone confirm the correct changes to add customer phone numbers to drop shipper's email in version 8?
Offline
gbailey wrote:
I used this info and by some trial and error got it to work. Here's what I did:
Modify the two display includes “Order Summary (Text Mail)” and “Order Summary (XHTML Mail)” to add print section as follows:
in the Order Summary (Text Mail) - line 239 before “if ($mailtype == 'INTERNAL') {“
add this:
//
// add customer phone number to drop shipper email
//
if ($mailtype == 'SHIPPER') {
print str_pad('Customer Phone: ',30) . $order['order']['phone'] . $eol;
} // end of if statement.
// end of customer phone number add
and in the Order Summary (XHTML Mail) - on line 281 before “if ($mailtype == 'INTERNAL') {“
add this:
//
// add customer phone number to drop shipper email
//
if ($mailtype == 'SHIPPER') {
print '<tr class="regtable">' . $eol;
print '<td class="regtable" style="width: 50%"><p class="strong">Customer Phone</p><p>' . $order['order']['phone'] . '</p></td>' . $eol;
print '</tr>' . $eol;
} // end of if statement.
// end of customer phone number add
May not be elegant, but it's working.
I did this, but it didn't produce the desire result. The shipper is still getting emails with no phone numbers. I figured there must be a slight difference that I'm not seeing.
Offline
In V8 you will see:
$dophone = 0; if ((!(empty($order['order']['phone']))) && ($order['order']['phone'] != '0000000000') && ($mailtype != 'SHIPPER')) {$dophone++;}
Get rid of the ' && ($mailtype != 'SHIPPER')' and you should be good to go.
Offline