Zen Cart Logo
Forums / All Other Contributions/Addons / Additional Customers Fields

Additional Customers Fields

Locked

Views: 88,141

Results 141 to 160 of 491
This thread is locked. New replies are disabled.
5 Jun 2007, 11:46 AM
#141
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Additional Customers Fields

Text boxes and TextArea boxes gathers all data from the database. Pull down menus and radio buttons still gathers the data from the database by masking the original values with your questions used with _content['your_field'] at the end related with the _title['your_field'] by using the arrays.

5 Jun 2007, 2:54 PM
#142
esugrue avatar

esugrue

Zen Follower

Join Date:
Jun 2004
Posts:
182
Plugin Contributions:
0

Re: Additional Customers Fields

TheOracle:

Text boxes and TextArea boxes gathers all data from the database. Pull down menus and radio buttons still gathers the data from the database by masking the original values with your questions used with _content['your_field'] at the end related with the _title['your_field'] by using the arrays.

I've decided to give up trying to install this mod. A shame because I can see the value in it, but after 5 days I'm admitting defeat.

5 Jun 2007, 3:00 PM
#143
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

Well, if you ever decide to keep it, you can always send me an installation note by email (see the installation text file) so that I could implement the first field for you for a small fee.

5 Jun 2007, 5:23 PM
#144
bjorn avatar

bjorn

New Zenner

Join Date:
May 2005
Posts:
23
Plugin Contributions:
0

Re: Additional Customers Fields

Hi Oracle,

Fantastic Mod. I'm having issues with pull down Menu's. The age sample is not working correctly, it displays an empty textbox instead of a pulldown with the age list.

Could you verify the php command in includes/templates/my_template/templates/tpl_account_edit_default.php to be

<?php echo zen_draw_input_field('customers_age', $account->fields['customers_age'], 'id="customers_age"'); ?>

For drop down menu's, I am not a PHP programmer but I have a hunch that the command is not correct. Should we be using zen_draw_pull_down instead?

Bjorn

5 Jun 2007, 5:43 PM
#145
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

It wasn't a coding error actually. My personal example was simply stated under input type for the customers age field. However, if you wish to reform that entry into a dropdown selection form, you can use the built-in function from the DEV team called: zen_draw_pull_down_menu function. There's a good example you can use from your overrided tpl_modules_create_account.php file you can use. :wink2:

5 Jun 2007, 6:03 PM
#146
bjorn avatar

bjorn

New Zenner

Join Date:
May 2005
Posts:
23
Plugin Contributions:
0

Re: Additional Customers Fields

Thanks Oracle. Perhaps you could help me with the pull down function?

Sample provided;

zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'id="stateZone"');

Altered;

zen_draw_pull_down_menu('customers_age', $account->array['customers_age'], 'id="customers_age"');

Dropdown shows XX, I know the altered drop down is incorrect. Any ideas?

Bjorn

5 Jun 2007, 6:13 PM
#147
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

$account->array['customers_age']

Array ? :mellow:

As stated from my template example, both shows as:

$account->fields['customers_age']
5 Jun 2007, 6:28 PM
#148
bjorn avatar

bjorn

New Zenner

Join Date:
May 2005
Posts:
23
Plugin Contributions:
0

Re: Additional Customers Fields

Not sure what you mean. Template example is as follows;

<?php echo zen_draw_input_field('customers_age', '', zen_set_field_length(TABLE_CUSTOMERS, 'entry_customers_age', '40') . ' id="customers_age"'); ?>

I'm obviously not understanding something here?

Why would the customers_age example be a textfield if we're using a dropdown function in the admin? This is just confusing? Was the age sample not meant to be a dropdown but rather a textfield?

5 Jun 2007, 6:58 PM
#149
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

Sorry. I do not give support for template customization. This problem is not related to the MOD specifically. You're simply trying to switch from an input type into a SELECT list. Please see the wiki documentation, FAQs, PDF Documentation for more info on how to customize these forms within your template files.

Was the age sample not meant to be a dropdown but rather a textfield?

Incorrect. They were meant to be one of them (your choice between those two - which is why arrays were built in the first place).

Thanks.

5 Jun 2007, 8:07 PM
#150
bjorn avatar

bjorn

New Zenner

Join Date:
May 2005
Posts:
23
Plugin Contributions:
0

Re: Additional Customers Fields

Odd. I'm not looking for custom template support but rather how to get the drop down working for the sample. The customer_age sample on my create account screen does not show a drop down but a textfield for input.

Everything else works except the dropdown.

Bjorn

5 Jun 2007, 10:52 PM
#151
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

Everything else works except the dropdown.

If it involves the SELECT list form, then like I said before, you must use the function: zen_draw_pull_down_menu. There's an example from tpl_modules_create_account.php file you can use. If you do encounter anything odd like a field that doesn't load correctly (either from the admin equally as the store-front and physically), then I would wonder but since it is just a presentation issue and that you do see the field, this is not a problem from my MOD.

7 Jun 2007, 8:56 AM
#152
cristaltech avatar

cristaltech

New Zenner

Join Date:
Apr 2007
Location:
Rustenburg, South Africa
Posts:
87
Plugin Contributions:
0

Re: Additional Customers Fields

Orders Order ID: Status: All OrdersPending [1]Processing [2]Delivered [3]Update [4] LEGEND: TEXT_BILLING_SHIPPING_MISMATCH TABLE_HEADING_ORDERS_IDTABLE_HEADING_PAYMENT_METHODCustomersOrder TotalDate PurchasedStatusAction 117GV/DC
free[IMG]http://cristaltech.co.za/mall/admin/images/icons/preview.gif[/IMG] R0.0006/06/2007 17:10:27Processing[IMG]http://cristaltech.co.za/mall/admin/images/icon_info.gif[/IMG] Orders Order ID: Status: All OrdersPending [1]Processing [2]Delivered [3]Update [4]
I have installed this module and now I have the above problem in my admin panel. The description of the orders is gone and also in the description of the tables have an error.

Can you assist me with that ??

7 Jun 2007, 11:16 AM
#153
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

Can you assist me with that ??

There is no way to assist for this if no specifications are being mentioned. Exacly 'where' does this problem occurs in the admin ? For now, this problem seem to come from bad incorporation in admin/customers.php file. Althought, this MOD should not affect orders in any ways since it is not related . . .

If you're not sure, then please post a screenshot.

7 Jun 2007, 5:35 PM
#154
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

Update:

Very important fixes were applied today. You may download the package from my site. For those who upgrades, please read the upgrade and changelog text documentation.

There were encountered problems (also reported) regarding the pull-down menus under the admin's customers core page. Even I couldn't find the source of the problem instantly. These issues has been fixed under this release.

7 Jun 2007, 5:45 PM
#155
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

Additional note: To those who wonders if it will alter any in the database, fortunitely - it won't. Althought, the bad news, for the first times (until you make the corrections for each of these users from the admin's customers core page), the content might show different results comparing to phpmyadmin from your TABLE_CUSTOMERS table.

My sincere apologize for these errors and hope that you like this MOD.

7 Jun 2007, 7:00 PM
#156
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

Update:

In order to avoid future confrontation with this MOD in the future, I have now updated the admin/includes/languages/<your_language>/extra_definitions/additional_customers_fields.php file's documentation (with the word: update in the guideline) so that everyone won't fall into the same issues again. :wink2:

7 Jun 2007, 7:35 PM
#157
cristaltech avatar

cristaltech

New Zenner

Join Date:
Apr 2007
Location:
Rustenburg, South Africa
Posts:
87
Plugin Contributions:
0

Re: Additional Customers Fields

admin, customers, orders

7 Jun 2007, 7:45 PM
#158
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

Sorry. This MOD is not related to that page on anywhere. I can only suspect this is an incorporation error somewhere.

7 Jun 2007, 8:31 PM
#159
rbepple avatar

rbepple

New Zenner

Join Date:
Jun 2007
Posts:
71
Plugin Contributions:
0

Re: Additional Customers Fields

Hello All,
I have completely installed the additional_customer_fields MOD, I've gone in Admin>Customers>Add Customer Fields and created a new customer field and enabled it. Now I just don't see the new field on the login/register page. I have just opened the ZEN CART account and everything is pretty much the default values (including template). Can anyone help me on getting this field to show up?

Secondly, once I get this field to show up I want to make it a drop down list with two option (Mel Kimmel and Boyd Thomas). Can anyone help me with this also.

7 Jun 2007, 8:44 PM
#160
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Additional Customers Fields

Can anyone help me on getting this field to show up?

Once you added + activated the field from the admin section, you must manually code the design from your template overrides files by following the example from my package.