Zen Cart Logo
Forums / Customization from the Admin / Customise customers menu

Customise customers menu

Locked

Views: 2,460

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
8 Jun 2006, 5:07 AM
#1
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

Customise customers menu

Does anyone know how i can show the fax number in the list of customers?
go to admin>customers and there is the list of customers showing their last name, first name, company, account created etc...

In admin/customers.php I have added <td class="dataTableContent">Fax:<?php echo $customers->fields['customers_fax']; ?></td>

it shows 'Fax:' but it doesn't display the fax number.

Thanks,
M.

8 Jun 2006, 5:13 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Customise customers menu

what version of zen cart are you using?
in 1.3.0.1

this is already in place

<tr>
            <td class="main"><?php echo ENTRY_FAX_NUMBER; ?></td>
            <td class="main">
<?php
  if ($processed == true) {
    echo $cInfo->customers_fax . zen_draw_hidden_field('customers_fax');
  } else {
    echo zen_draw_input_field('customers_fax', $cInfo->customers_fax, zen_set_field_length(TABLE_CUSTOMERS, 'customers_fax', 15));
  }
?></td>
          </tr>
8 Jun 2006, 5:19 AM
#3
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

Re: Customise customers menu

Hi Merlin.
I see that in the customers details page but i want to show the fax number where all the customers are listed accros the page.

M.

8 Jun 2006, 5:20 AM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Customise customers menu

Im lost where are you talking about

8 Jun 2006, 5:25 AM
#5
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

Re: Customise customers menu

Sorry, probably not very clear description.

IN Admin customers > customers.

the grey bar accros the page shows last name | first name | Company | Account Created | Last Login

Below it lists these details for each customer.

What i want to do is also show the Fax number for each customer.
M.

8 Jun 2006, 6:54 AM
#6
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

Re: Customise customers menu

This is the code for the customers list

<td class="dataTableContent"><?php echo $customers->fields['customers_lastname']; ?></td> <td class="dataTableContent"><?php echo $customers->fields['customers_firstname']; ?></td> <td class="dataTableContent"><?php echo $customers->fields['entry_company']; ?></td>

I have added:

<td class="dataTableContent">Fax:<?php echo $customers->fields['customers_fax']; ?></td>

but the fax number doesn't display.

Ideas?
....
Anyone?

11 Jun 2006, 1:07 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customise customers menu

Fax cannot display if you do not add it also to the select statement for that listing ... :eek:

Only a limited number of fields are grabbed for that display and customers_fax isn't one of them ...