Kryptronic Software Support Forum

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.

#1 10-01-2013 10:32:09

misgperson
Member
Registered: 06-03-2009
Posts: 10
Website

Need Phone Number on Email Order Confirmations

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

 

#2 10-02-2013 07:06:20

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: Need Phone Number on Email Order Confirmations

Hi Pall,

if you look in Location: System Dashboard > System > Displays > Display Includes.... Order Summary (Order Confirmation)

Do you have a listing in the

Code:

   // +--
     // | Print the billing information.
     // +--

section for phone?

if not this is what mine looks like

Code:

     // +--
     // | 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.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#3 10-02-2013 07:36:24

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Need Phone Number on Email Order Confirmations

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).


Nick Hendler

Offline

 

#4 10-05-2013 00:58:45

misgperson
Member
Registered: 06-03-2009
Posts: 10
Website

Re: Need Phone Number on Email Order Confirmations

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

 

#5 04-28-2014 10:45:35

JayCR48
Member
From: Ohio
Registered: 03-27-2008
Posts: 87
Website

Re: Need Phone Number on Email Order Confirmations

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?


We distribute high quality steel auto body panels for use in the rust repair industry.

Offline

 

#6 04-29-2014 08:56:07

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Need Phone Number on Email Order Confirmations

The includes are nearly identical in V7 and V8.  Just edit that billing info section and make the changes you want.


Nick Hendler

Offline

 

#7 04-29-2014 15:11:03

JayCR48
Member
From: Ohio
Registered: 03-27-2008
Posts: 87
Website

Re: Need Phone Number on Email Order Confirmations

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.


We distribute high quality steel auto body panels for use in the rust repair industry.

Offline

 

#8 04-30-2014 10:45:30

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Need Phone Number on Email Order Confirmations

In V8 you will see:

Code:

          $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.


Nick Hendler

Offline

 

Board footer