Forums / Customization from the Admin / Telephone number is missing from invoices

Telephone number is missing from invoices

Locked

Views: 5,107

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
6 Jan 2008, 7:28 AM
#1
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Telephone number is missing from invoices

The customer's telephone number doesn't show on the invoice.

The caption for Telephone: is there, but no number.

Can anyone help?

6 Jan 2008, 9:26 AM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Telephone number is missing from invoices

That means that telephone numbers are not getting stored in the databae
Do you see the telephone number when you click on the Customer details in the Admin?

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

6 Jan 2008, 9:33 AM
#3
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: Telephone number is missing from invoices

Sure there is a telephone number for the customer under customer details.That's why this is so strange.

6 Jan 2008, 9:36 AM
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Telephone number is missing from invoices

Well, then that means there is some problem with the orders.php
Did someone edit it?
What do you have around lines 370 around this section?

<tr>
                <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
              </tr>
              <tr>
                <td class="main"><strong><?php echo ENTRY_TELEPHONE_NUMBER; ?></strong></td>
                <td class="main"><?php echo $order->customer['telephone']; ?></td>
              </tr>
              <tr>
                <td class="main"><strong><?php echo ENTRY_EMAIL_ADDRESS; ?></strong></td>
                <td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '">' . $order->customer['email_address'] . '</a>'; ?></td>
              </tr>

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

6 Jan 2008, 11:59 AM
#5
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: Telephone number is missing from invoices

This is my orders.php file from line 370 to line 376. Looks like yours doesn't it.

<tr>
               <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
             </tr>
             <tr>
               <td class="main"><strong><?php echo ENTRY_TELEPHONE_NUMBER; ?></strong></td>
               <td class="main"><?php echo $order->customer['telephone']; ?></td>
             </tr>
             <tr>

This a sample screen shot. Telephone is empty.

Thanks for you efforts in helping me.

6 Jan 2008, 12:18 PM
#6
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Telephone number is missing from invoices

Strange...
Can you post the code around lines 790 from admin\customers.php

<td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
          <tr>
            <td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td>
            <td class="main">
<?php
  if ($error == true) {
    if ($entry_telephone_error == true) {
      echo zen_draw_input_field('customers_telephone', $cInfo->customers_telephone, zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', 15)) . ' ' . ENTRY_TELEPHONE_NUMBER_ERROR;
    } else {
      echo $cInfo->customers_telephone . zen_draw_hidden_field('customers_telephone');

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

6 Jan 2008, 12:31 PM
#7
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: Telephone number is missing from invoices

The version stamp on my admin/customer.php is:

 * @version $Id: customers.php 4280 2006-08-26 03:32:55Z drbyte $

This from line 1489 - 1507 (my file is double spaced if that matters)

        <td class="formArea"><table border="0" cellspacing="2" cellpadding="2">

          <tr>

            <td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td>

            <td class="main">

<?php

  if ($error == true) {

    if ($entry_telephone_error == true) {

      echo zen_draw_input_field('customers_telephone', $cInfo->customers_telephone, zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', 15)) . ' ' . ENTRY_TELEPHONE_NUMBER_ERROR;

    } else {

      echo $cInfo->customers_telephone . zen_draw_hidden_field('customers_telephone');
6 Jan 2008, 12:41 PM
#8
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Telephone number is missing from invoices

Can you place a test order and see if this happens with all the orders?
I went for checkout and got till I have to pay via paypal!
Also, do you have any mods on your site?
Thanks

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

9 Jan 2008, 8:28 AM
#9
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

Re: Telephone number is missing from invoices

I installed COD payment type and created a free product with free shipping so that a new order can be generated without much hassle.
the new order displays the phone number with no problem.

So I guess this is ok, for now.

Thanks again.