If you go to your phpmyadmin, can you see this field settings created as is from your TABLE_CUSTOMERS ? Additionally, is that created field also added to the additional customers table as expected ?
The field member_number is listed under both zen_customers and zen_customers_additional
If you expect to see the input type form from your admin customer's core page, then yes - it should be displayed with the content inside also
if there are actually contents. If the content is empty, the routines has been coded to not display the field if there are no content inside.
What I want is to allow the customer to input their member number when they create an account and for me to see/edit it if necessary on the admin side! I guess there will be no contents until I can get it working so I can create a test account and input a member number, so until then it won't be shown - correct?
Would it be possible to see what you edited in your template file - between the opening of while and the closing bracket of the while statement ? (Please post the codes in PHP bbcode, otherwise it's harder to read).
PHP Code:
while (!$account->EOF) {
if ($account->fields['field_name'] == "customers_hobbies") {
?>
<label class="inputLabel" for="customers_hobbies"><?php echo ENTRY_CUSTOMERS_HOBBIES_TITLE; ?></label>
<?php echo zen_draw_textarea_field('customers_hobbies', '45', '3'); ?>
<br class="clearBoth" />
<?php
} // End of additional customers fields for hobbies.
// We now set up an additional customer field for ages.
if ($account->fields['field_name'] == "customers_age") {
?>
<label class="inputLabel" for="customers_age"><?php echo ENTRY_CUSTOMERS_AGE_TITLE; ?></label>
<?php echo zen_draw_input_field('customers_age', '', zen_set_field_length(TABLE_CUSTOMERS, 'entry_customers_age', '40') . ' id="customers_age"'); ?>
<br class="clearBoth" />
<?php
} // End of additional customers fields for ages.
// We now set up an additional customer field for member number.
if ($account->fields['field_name'] == "member_number" && $temp != $account->fields['field_name']) {
?>
<label class="inputLabel" for="member_number"><?php echo ENTRY_MEMBER_NUMBER_TITLE; ?></label> <?php echo zen_draw_input_field('member_number', '', zen_set_field_length(TABLE_CUSTOMERS, 'member_number', '40') . ' id="member_number"'); ?>
<br class="clearBoth" />
<?php
}
// End of additional customers fields for member number.
$account->MoveNext();
// Note: This shall be the only ending while loop with the variable: '$account' as there should only be one MoveNext() call with this variable as well.
}
I'm only really want the `member_number' part though, the last label
Sorry about that. As you can see, there are more than a few people who request assistance in here. I'm sure you can understand that I don't remember all of the specs for each of users.
No, I don't expect you too, which is why I don't mind giving the specs again if it helps!
Bookmarks