Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default fax number on order page?

    Can someone tell me how to add the fax number that is supplied by customer to the admin order info page please...

    at moment i have to go back and forth between customer info and order info to find this out and its really time wasting thanks

  2. #2
    Join Date
    Dec 2011
    Location
    Emmen, The Netherlands
    Posts
    85
    Plugin Contributions
    0

    Default Re: fax number on order page?

    Which page are you talking about, is this the invoice you mean ?

  3. #3
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: fax number on order page?

    orders.php

    line 491

    PHP Code:
                  <tr>                <td class="main"><strong><?php echo ENTRY_TELEPHONE_NUMBER?></strong></td>                <td class="main"><?php echo $order->customer['telephone']; ?></td>              </tr>
    i tried adding a new line under this and replaced 'telephone' with 'customer_fax' (as used in the customer details code) but no joy.

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: fax number on order page?

    If you modified admin/orders.php to read

    PHP Code:
                  <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_FAX_NUMBER?></strong></td>
                    <td class="main"><?php echo $order->customer['customers_fax']; ?></td>
                  </tr>
    then you will just get something like this on the orders page:

    Telephone Number: 09-8765 4321
    Fax Number: <BLANK>
    E-Mail Address: [email protected]


    with a <BLANK> field for the actual fax number simply because the fax number is not stored in the orders table.

    So me thinks you either need to pull the fax number from the customers table or modify the ZC code in a way that the fax number is stored in the orders table when an order is created.
    Last edited by frank18; 9 Aug 2014 at 01:00 PM.

  5. #5
    Join Date
    Dec 2011
    Location
    Emmen, The Netherlands
    Posts
    85
    Plugin Contributions
    0

    Default Re: fax number on order page?

    Quote Originally Posted by kitcorsa View Post
    orders.php

    line 491

    PHP Code:
                  <tr>                <td class="main"><strong><?php echo ENTRY_TELEPHONE_NUMBER?></strong></td>                <td class="main"><?php echo $order->customer['telephone']; ?></td>              </tr>
    i tried adding a new line under this and replaced 'telephone' with 'customer_fax' (as used in the customer details code) but no joy.
    customers fax isnt saved in the orders table, you could edit some zencart files to let it add this to the orders table but this would require edit of the database.

    You could add some simple code in the invoice.php file which grabs the fax number based on customer id or email or something, which is a quick and dirty workaround for your problem. I use this method to show custom fields on my invoices.

    Im still not clear where you want this fax number to appear ? is this on the invoice ? the packingslip ? or just on the order information page ?

    If you can explain for me where you want to show the fax number i can take a look into writing this for you, im not a expert in writing zencart modules but i can add custom code....

    Mayb you can explain with a screenshot where you want the fax number to appear, if i have some free time this week i will code it for you.

  6. #6
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: fax number on order page?

    on the order info page on the admin side,

    this is so when i get an order, customers leave me there home number and mobile number (which is the fax section of the prebuilt zencart just with lable changed on display) so i and my delivery drivers can contact the customer. we then email this if to suppliers and drivers etc. having both customer number on the order info screen would save so much time.

  7. #7
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: fax number on order page?

    Quote Originally Posted by frank18 View Post
    If you modified admin/orders.php to read

    PHP Code:
                  <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_FAX_NUMBER?></strong></td>
                    <td class="main"><?php echo $order->customer['customers_fax']; ?></td>
                  </tr>
    then you will just get something like this on the orders page:

    Telephone Number: 09-8765 4321
    Fax Number: <BLANK>
    E-Mail Address: [email protected]


    with a <BLANK> field for the actual fax number simply because the fax number is not stored in the orders table.

    So me thinks you either need to pull the fax number from the customers table or modify the ZC code in a way that the fax number is stored in the orders table when an order is created.
    exactally what happens. how do i pull from the customers table??

  8. #8
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: fax number on order page?

    id also like to add this to the invoices as well invoice.php

 

 

Similar Threads

  1. Guide to show Fax # on Order page?
    By JohnsonY in forum Customization from the Admin
    Replies: 9
    Last Post: 7 Sep 2011, 03:26 PM
  2. Replies: 4
    Last Post: 11 Jun 2011, 04:21 PM
  3. Adding customer fax number to admin order display
    By cjsmiff in forum Customization from the Admin
    Replies: 0
    Last Post: 5 Mar 2010, 02:31 AM
  4. Fax number requirement
    By jbarrick in forum Managing Customers and Orders
    Replies: 6
    Last Post: 17 Aug 2009, 06:37 PM
  5. Add Fax field in the Admin's Order page
    By MikeX in forum Customization from the Admin
    Replies: 4
    Last Post: 28 Nov 2006, 06:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR