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

Additional Customers Fields

Locked

Views: 88,139

Results 101 to 120 of 491
This thread is locked. New replies are disabled.
3 Jun 2007, 1:32 AM
#101
theoracle avatar

theoracle

Suspended

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

Additional Customers Fields

Ah ! so here we go. Those details should of had been mentionned over email as well with the rest of your infos. :wink2:

Now, I have added your wholesale's ID field in your template. As for your error message, the reason why it was shown is because these two tpl files were not uploaded at the right place.

As for the $temp variable, leave it - it is not required since I just made the proper modifications within the create account template file for you (tpl_edit_account_default.php). This will be a useful example for you to follow for the rest of the created fields you will make as well as the account edit page's template file (tpl_account_edit_default.php file). :wink2:

Note: These two files has been moved back into your GDS's template overrides with the rest of the TPL files (as they should be).

Starting from this point, you should be all set. :cool:

3 Jun 2007, 1:57 AM
#102
theoracle avatar

theoracle

Suspended

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

Re: Additional Customers Fields

Would seem I misspelled a little bit here:

create account template file for you (tpl_edit_account_default.php).

I meant:

create account template file for you (tpl_create_account_default.php).

:lookaroun

3 Jun 2007, 2:07 AM
#103
esugrue avatar

esugrue

Zen Follower

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

Re: Additional Customers Fields

Hi!

I have been away for a few days so this morning I installed it again with limited success.

I think I've installed it correctly (well obviosuly not!!), as now when I go to:
**Customers > Add Customer Fields **I get the main page (before FF would simply tell me it was redirecting in a way that would never complete).

If I attempt to Create an Additional Customer Field I complete the fields, say: Member Number - Int - 6 - (Blank) - 000000 - warns me to back up and when I click Create it goes back to the main page of the module and shows:

Main Menu and then 3 choices under Main Menu / Create / Reset.

If I then go back to Customers > Add Customer Fields it tells me "There are currently no new additional customers fields created/imported into the listing table."


Also, when I go to the main page of the catalog instead of saying Welcome to My Store - Hello Guest ... ' it now just says Additional Customer Fields - Hello Guest ...'


I'm using:
MySQL: 4.1.12-standard
Zen: 1.3.7
PHP/4.4.3

========

Any ideas on whay may be wrong!

If you want to go in and have a look, let me know!!!

Thanks
Ernie

3 Jun 2007, 2:42 AM
#104
theoracle avatar

theoracle

Suspended

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

Re: Additional Customers Fields

If you want to go in and have a look, let me know!!!

Email all your FTP info, URL and secondary admin account for your admin section + a test account I can use for your site (make sure you do have a test account from your front-store before I investigate in order to speed up the process). I will take a look at it. :wink2:

My email address can be found under the installation text file of the package.

Additional note: If you have installed the Admin Profiles MOD, make sure that the secondary admin account has full access during my session in the admin section.

3 Jun 2007, 3:35 AM
#105
esugrue avatar

esugrue

Zen Follower

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

Re: Additional Customers Fields

TheOracle:

Email all your FTP info, URL and secondary admin account for your admin section + a test account I can use for your site (make sure you do have a test account from your front-store before I investigate in order to speed up the process). I will take a look at it. :wink2:

My email address can be found under the installation text file of the package.

Additional note: If you have installed the Admin Profiles MOD, make sure that the secondary admin account has full access during my session in the admin section.

Thanks - I have emailed the info to the gmail account in the install. I have not added the Admin Profiles Mod.

Thanks again
Ernie

3 Jun 2007, 3:56 AM
#106
theoracle avatar

theoracle

Suspended

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

Re: Additional Customers Fields

Investigation complete.

1 - Regarding the redirection issue. I have just tested with IE and FF as I cannot reproduce this problem on your own admin section. It's probably a browser issue from your end. I would recommend to clear out all your cookies, temp files and history files. Then, close your browser, re-open and try again.

2 - You are not using any modules overrides folders (which is not recommended due to upgrade issues). Read the wiki documentation on how to proceed with this step in order to keep your work safe.

3 - Your server has the speed equivalent to a 56k modem speed. For the saighs of your users, I wouldn't recommend to run a shopping cart (especially if you have numerous products to incorporate into the database) due to the limited capacity since I did encountered problems while uploading two files during my FTP session. I'd recommend to check out the hosting deals from this site. They might be a little bit high pricing, but they do seem to offer pretty good deals regarding Zen-Cart compatibilities + speed order process (which, both, are priorities for all your customers). :wink2:

I have initiated the test_field under the tpl_edit_account_default.php file + activated that field under the admin section in order, for you, to understand how my conditions has been applied so that all additional customers fields loads accordingly to your restriction levels (activated / deactivated as it should). That said, you can easily do the same for the rest of all the fields you might want to add as easy it will be for you to do the same over the tpl_create_account_default.php file for the customer's registration account form. :wink2:

3 Jun 2007, 4:05 AM
#107
theoracle avatar

theoracle

Suspended

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

Re: Additional Customers Fields

Correction:

tpl_create_account_default.php file = tpl_modules_create_account.php file for customizing the fields regarding registration account (fortunitely, that filename is also stated correctly from my package - the error name was just in here).

My mistake. :lookaroun

Good luck !

3 Jun 2007, 4:40 AM
#108
esugrue avatar

esugrue

Zen Follower

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

Re: Additional Customers Fields

Thank you for that, I do appreciate it!

1 - Regarding the redirection issue. I have just tested with IE and FF as I cannot reproduce this problem on your own admin section. It's probably a browser issue from your end. I would recommend to clear out all your cookies, temp files and history files. Then, close your browser, re-open and try again.

This issure has not occured since my original install so I obviously did something to cause it!

3 - Your server has the speed equivalent to a 56k modem speed. For the saighs of your users, I wouldn't recommend to run a shopping cart (especially if you have numerous products to incorporate into the database) due to the limited capacity since I did encountered problems while uploading two files during my FTP session.

I am in Australia and the store is also and for some reason it runs quite well here. The cart is for a customer so I'm stuck with this hosting (as it's a year contract). I do know what you mean about speed though as my monitoring script (for downtime) checks from the US and EU and it is abysmal responses especially from EU for some reason. In Australia though the pages come up immediately and FTP is the fastest I've seen.

Weird that it would be so different though, thanks fr mentioning it!

I have initiated the test_field under the tpl_edit_account_default.php file + activated that field under the admin section in order, for you, to understand how my conditions has been applied so that all additional customers fields loads accordingly to your restriction levels (activated / deactivated as it should). That said, you can easily do the same for the rest of all the fields you might want to add as easy it will be for you to do the same over the tpl_create_account_default.php file for the customer's registration account form. :wink2:

Thank You! I will study it and see if I can understand it maybe :yes: maybe :no:!

Thanks again!
Ernie

3 Jun 2007, 4:56 AM
#109
esugrue avatar

esugrue

Zen Follower

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

Re: Additional Customers Fields

Hi!

One last question - what would be causing the Additional Customers Fields' heading to come up at the top of each page, ie: Home Page' - `All Products List' etc etc.

Thanks
Ernie

3 Jun 2007, 5:54 AM
#110
sadr1an1 avatar

sadr1an1

New Zenner

Join Date:
Mar 2007
Posts:
28
Plugin Contributions:
0

Re: Additional Customers Fields

esugrue - `Additional Customers Fields' heading to come up at the top of each page because of the file
includes\languages\english\extra_definitions\additional_customers_fields.php and line

define('HEADING_TITLE', 'Additional Customers Fields');

That's because you defined global HEADING_TITLE as ''.

TheOracle - Yes,i can activate and deactivate the custom fields, the only problem remain is when i want to delete a custom field, it isn't deleted from customers table in mysql and i have to delete it myself.

3 Jun 2007, 8:28 AM
#111
esugrue avatar

esugrue

Zen Follower

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

Re: Additional Customers Fields

sadr1an1:

esugrue - `Additional Customers Fields' heading to come up at the top of each page because of the file
includes\languages\english\extra_definitions\additional_customers_fields.php and line

define('HEADING_TITLE', 'Additional Customers Fields');

That's because you defined global HEADING_TITLE as ''.

When I search I have hundreds of define('HEADING_TITLE', 'xxx', one for each page I suppose, including the define('HEADING_TITLE', 'Additional Customers Fields');

I don't quite understand what you mean by `you defined global HEADING_TITLE as ''.

What must I change or what file do I look in? The page titles were working OK before installing the mod and now thwy aren't!

Thanks
Ernie

3 Jun 2007, 11:03 AM
#112
theoracle avatar

theoracle

Suspended

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

Re: Additional Customers Fields

`Additional Customers Fields' heading to come up at the top of each page because of the file
includes\languages\english\extra_definitions\addit ional_customers_fields.php and line

define('HEADING_TITLE', 'Additional Customers Fields');

That's because you defined global HEADING_TITLE as ''.

Oops - this was first testing purposes. Forgot to remove it before the release. Very well, the correction will be done later today.

TheOracle - Yes,i can activate and deactivate the custom fields, the only problem remain is when i want to delete a custom field, it isn't deleted from customers table in mysql and i have to delete it myself.

Mind to tell me which PHP, mySQL and Zen-Cart version you are using ? Sounds like one of them does not communicate very well together since I do not use anything special by removing those entries from the table . . .

When I search I have hundreds of define('HEADING_TITLE', 'xxx', one for each page I suppose, including the define('HEADING_TITLE', 'Additional Customers Fields');

The one you'd be looking for would be under your includes/languages/english/extra_definitions/additional_customers_fields.php file.

The fastest way you could of found it in a sec or 2 would be by using the Developers tool kit under the admin - > tools menu.

I don't quite understand what you mean by `you defined global HEADING_TITLE as ''.

Once you find it under that file,

replace:

define('HEADING_TITLE', 'Additional customers fields');

with:

define('HEADING_TITLE', '');

Easy as counting 1-2-3-4.

3 Jun 2007, 11:06 AM
#113
theoracle avatar

theoracle

Suspended

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

Re: Additional Customers Fields

Update: Package updated.

3 Jun 2007, 11:38 AM
#114
esugrue avatar

esugrue

Zen Follower

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

Re: Additional Customers Fields

The one you'd be looking for would be under your includes/languages/english/extra_definitions/additional_customers_fields.php file.

The fastest way you could of found it in a sec or 2 would be by using the Developers tool kit under the admin - > tools menu.

Yes I found it OK but was confused about what I was to replace it with!!!

Once you find it under that file,

replace:

define('HEADING_TITLE', 'Additional customers fields');

> 
> ```php
define('HEADING_TITLE', '');

Once I did that it's now working fine - thanks!

Ernie

3 Jun 2007, 11:44 AM
#115
theoracle avatar

theoracle

Suspended

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

Re: Additional Customers Fields

Excellent. Thanks for confirming this.

3 Jun 2007, 11:48 AM
#116
theoracle avatar

theoracle

Suspended

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

Re: Additional Customers Fields

Side note: Make sure to download the updates I'm doing from my site and NOT from the downloads section since, from the downloads, the package isn't instantly refreshed.

4 Jun 2007, 5:21 AM
#117
esugrue avatar

esugrue

Zen Follower

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

Re: Additional Customers Fields

Hi!

I still cannot get it to work - I'm sure I'm doing something simple wrong but I'm now just so confused.

I tried following the install instructions and also sadr1an1 install guide a few pages back but I am getting no results.

What did the new package released in the last day do - should I try installing that - if it fixed something important?

I am trying to create a new field member_number. I created it under Customers - Addtional Customer Fields and then added the line: $additional_customers_fields_form_input_title['member_number'] = array('Member Number: '); in admin/includes/languages/english/extra_definitions/additional_customers_fields.php

I have added the code also to the create_account file but it does not show up whenI try to create an account.

When I go to the admin side and have a look at a customer Customers - Edit I get the block: Additional Customer Fields but it is blank.

Ernie

4 Jun 2007, 11:12 AM
#118
theoracle avatar

theoracle

Suspended

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

Re: Additional Customers Fields

I am trying to create a new field member_number. I created it under Customers - Addtional Customer Fields and then added the line: $additional_customers_fields_form_input_title['member_number'] = array('Member Number: '); in admin/includes/languages/english/extra_definitions/additional_customers_fields.php

Did you activated it after you created it from the admin ? Which type of field did you created precisely ?

I have added the code also to the create_account file but it does not show up whenI try to create an account.

If you mean that you have added the array code into the create_account.php file, it will obviously not work. The appropriate modules are included from my package in order to show additional customers fields accordingly.

When I go to the admin side and have a look at a customer Customers - Edit I get the block: Additional Customer Fields but it is blank.

Looks like you did not chose the right structure for your field when you created it. In the mean time, if you did not specified your PHP, mySQL and Zen-Cart version, please specify. If so, please state the thread from this topic where it has been mentioned. It will help me out to find the source of these issues, since I cannot reproduce these errors from my end.

4 Jun 2007, 12:06 PM
#119
esugrue avatar

esugrue

Zen Follower

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

Re: Additional Customers Fields

Did you activated it after you created it from the admin ? Which type of field did you created precisely ?

Created in Additional Fields:

Name: member_number
type: Int (as I want it to be a number)
Size: 6 (a 6 digit number)
Attribute: blank
Default: 000000

So in the file: admin/includes/languages/english/extra_definitions/additional_customers_fields.php

I have to define it, correct:

At the moment it's only listed as:

$additional_customers_fields_form_input_title['member_number'] = array('Member Number: ');

Is this correct or do I need something additional or different?

It's probably this I'm stuffing up as I don't understand that edit completely :(

If you mean that you have added the array code into the create_account.php file, it will obviously not work. The appropriate modules are included from my package in order to show additional customers fields accordingly.

No I edited tpl_modules_create_account.php where your additions for cellphone/hobbies etc were already there.

Looks like you did not chose the right structure for your field when you created it.

I have no doubt you are correct

In the mean time, if you did not specified your PHP, mySQL and Zen-Cart version, please specify.

I mentioned it before somewhere but it's:
MySQL: 4.1.12
PHP: 4.4.3
Zen: 1.3.7

Ernie

4 Jun 2007, 12:16 PM
#120
theoracle avatar

theoracle

Suspended

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

Re: Additional Customers Fields

Name: member_number
type: Int (as I want it to be a number)
Size: 6 (a 6 digit number)
Attribute: blank
Default: 000000

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 ?

At the moment it's only listed as:

$additional_customers_fields_form_input_title['member_number'] = array('Member Number: ');

Is this correct or do I need something additional or different?

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. This has been discussed earlier on this topic due to server resources. :wink2:

No I edited tpl_modules_create_account.php where your additions for cellphone/hobbies etc were already there.

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).

I mentioned it before somewhere

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. :wink2:

Since you seem to have already posted your specs, simply point out the precise topic and it will save us both time. :cool: