Zen Cart Logo
Forums / General Questions / New Customer

New Customer

Views: 601

Results 1 to 5 of 5
4 Aug 2014, 1:51 PM
#1
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

New Customer

I am looking at changing the password block for a new customer, however, using 'Developers Tool Kit (DTK)' and such like I cannot find the from submit.

I have used view source of the log-in page and found "<form name="create_account" action=" but using DTK it will not find which files on the website has it.

Can somebody explain how the new customer file with the password is assembled, please.

4 Aug 2014, 2:05 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: New Customer

adb34:

I am looking at changing the password block for a new customer, however, using 'Developers Tool Kit (DTK)' and such like I cannot find the from submit.

I have used view source of the log-in page and found "<form name="create_account" action=" but using DTK it will not find which files on the website has it.

Can somebody explain how the new customer file with the password is assembled, please.

Quick overview which does not necessarilyanswer the question directly, form fields are created through php, so won't find the specific string that was posted above. You will/should however, find create_account or some variation of it. Otherwise, an area to start is to look at the preloaded data/header data loaded through the pages directory: store/includes/modules/pages/create_account, and any associated template files that may guide you to your selected area such as store/includes/templates/YOUR_TEMPLATE/templates/tpl_create_account if it exists, or it may be in the templates_default directory and if being modified should be copied over to the above.

But if there is something of a wording change for "new" users, you would need an additional languages definition or modify an existing one to properly display the desired text.

4 Aug 2014, 2:22 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: New Customer

adb34:

I am looking at changing the password block for a new customer, however, using 'Developers Tool Kit (DTK)' and such like I cannot find the from submit.

I have used view source of the log-in page and found "<form name="create_account" action=" but using DTK it will not find which files on the website has it.

Can somebody explain how the new customer file with the password is assembled, please.
Forms within Zen Cart are "properly" created using the function zen_draw_form, so when you see a <form name="create_account" ... in your page's generated HTML you'll need to use the DTK to search for zen_draw_form('create_account' or zen_draw_form ('create_account' to find where that form is being created.

In this case, the file you're looking for is in your templates directory: tpl_modules_create_account.php

4 Aug 2014, 4:48 PM
#4
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: New Customer

I know what I am looking for is over several files. What I am looking for is the order of files to make > <form action="/" method="post">

</form>
4 Aug 2014, 5:13 PM
#5
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: New Customer

I have found a script that shows your password reveal as you type, well if you want to see it. This is what am trying to do.