If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Add a field into create account

Add a field into create account

Started by xlr82quik on 16 Aug 2007, 11:11 PM · Views: 51,646

Results 101 to 120 of 138
30 Jul 2010, 7:29 PM
#101
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Post #101 by jackie_taferner

okie dokie! module has been approved and is now available in the downloads section.

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1694

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

31 Jul 2010, 6:17 PM
#102
amandagero avatar

amandagero

Zen Follower

Join Date:
Feb 2009
Posts:
188
Plugin Contributions:
0

Post #102 by amandagero

how would i change it to a radio button?

i need 2 radio buttons, yes or no

2 Aug 2010, 3:50 PM
#103
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Post #103 by jackie_taferner

the module doesn't currently support changing to a radio button or dropdown. It is a simple text box (hope to add this feature in a future release maybe?)

But try this... open up this file:
/includes/templates/YOURTEMPLATE/templates/tpl_module_createaccount.php

And search for "extrafield", you should see where the text field is put on the page. Change that code to radio HTML, and i think that would work...

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

3 Aug 2010, 8:19 PM
#104
amandagero avatar

amandagero

Zen Follower

Join Date:
Feb 2009
Posts:
188
Plugin Contributions:
0

Post #104 by amandagero

ok, i will try that, thank you ( i will post back to let you know if it works.)

6 Aug 2010, 1:35 AM
#105
platte avatar

platte

New Zenner

Join Date:
Jun 2010
Posts:
19
Plugin Contributions:
0

Post #105 by platte

[In reply to message #47 from WilpackPackaging in this thread. A quote here would be too long]

Ok, this helped tremendously. When I followed kdtaylor's instructions (all about adding the error to a required field, message #18 in this thread), I wasn't clear on the use of ENTRY_FIRST_NAME_MIN_LENGTH, so I created a custom field which was not defined anywhere, and naturally it didn't work. When I plugged in ENTRY_FIRST_NAME_MIN_LENGTH, it worked. Yay! So, if I do want my own custom field there, like ENTRY_WHATEVER_MIN_LENGTH, how do I go about creating that, and giving it its own parameters?

I would love to have used jackie.taferner's module on this, but having started a month ago it was easier to continue with the file modifications I had already made.

20 Aug 2010, 2:26 PM
#106
joomdevz avatar

joomdevz

New Zenner

Join Date:
Jul 2010
Posts:
4
Plugin Contributions:
0

Post #106 by joomdevz

thx for the mod, jackie.taferner
I have a question though:
I added a few fields and everything is ok. Now I am trying to display the information from them in order confirmation email sent to customer. Any ideas, hints?

20 Aug 2010, 3:53 PM
#107
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Post #107 by jackie_taferner

hmm, that sure is a feature i'd like to add to the module at some point!

For now, try this:

Go to the Tools > Developers Tool Kit and copy/paste some of the text from your customer email. This should give you the location of the file that contains this content.

Open that file and take a look at how the other information is relayed into the message. You should be able to copy/paste one of the fields and then use the variable from your new field.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

23 Aug 2010, 2:21 PM
#108
joomdevz avatar

joomdevz

New Zenner

Join Date:
Jul 2010
Posts:
4
Plugin Contributions:
0

Post #108 by joomdevz

jackie.taferner:

For now, try this:

Go to the Tools > Developers Tool Kit and copy/paste some of the text from your customer email. This should give you the location of the file that contains this content.
Worth a try! But unfortunately no result.

I searched within all zencart files and even within the database for variables for the email templates system:
Order-Confirmation
$EMAIL_TEXT_HEADER ("Order Confirmation")
$INTRO_STORE_NAME
$INTRO_ORDER_NUM_TITLE ("Order Number:")
$INTRO_ORDER_NUMBER (actual order number)
$INTRO_DATE_TITLE ("Ordered on:")
$INTRO_DATE_ORDERED (Date ordered)
$INTRO_URL_TITLE (Description in A HREF to My Account)
$INTRO_URL_VALUE (A HREF to My Account)
$ORDER_COMMENTS (Customer's comments entered at order time)
$PRODUCTS_TITLE ("Product Details:")
$PRODUCTS_LIST (Detailed list of products and attributes and prices)
$ORDER_TOTALS (Order totals)
$HEADING_ADDRESS_INFORMATION ("Address Info:")
$ADDRESS_DELIVERY_TITLE ("Delivery address:")
$ADDRESS_DELIVERY_ADDRESS (Actual delivery address on order)
$SHIPPING_METHOD_TEXT ("Shipping Method")
$SHIPPING_METHOD_TITLE (Shipping method selected)
$ADDRESS_BILLING_TITLE ("Billing address:")
$ADDRESS_BILLING_DETAIL (Billing address on order)
$PAYMENT_METHOD_TEXT ("Payment Method:")
$PAYMENT_METHOD_TITLE (Payment method selected)
$PAYMENT_METHOD_FOOTER (Payment method footer, if any)

that I took from here
https://www.zen-cart.com/tutorials/index.php?article=113
and I found only the help files, which contain basically the same info as the link above.
That's a whole mystery :frusty: how and where are these "keywords" aka variables created? If I find out, I'll be able to do the same for the additional registration fields.

Thanks anyway!

23 Aug 2010, 3:44 PM
#109
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Post #109 by jackie_taferner

Go to the email you receive as a new customer and paste exactly what you find there (one sentence or so should be sufficient).

Use the actual text found in the email, not the variables shown in the article.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

24 Aug 2010, 3:13 PM
#110
sabrina_it avatar

sabrina_it

New Zenner

Join Date:
Jul 2010
Location:
Italy
Posts:
5
Plugin Contributions:
0

Post #110 by sabrina_it

jackie.taferner:

okie dokie! module has been approved and is now available in the downloads section.

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1694

Many thanks!
I've downloaded and installed new module without getting errors.
The new extra field appears in registration page.
BUT....
I have exactly the same problem as before...
That is, on the admin customers page, the field "extrafield" is empty, even if the customer has filled it.
I can see that database contains that field.

What's the problem?
Thank you for your help!

Sabrina

24 Aug 2010, 3:44 PM
#111
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Post #111 by jackie_taferner

Sabrina, try clicking into the customer to view the details and all the information is there.

this is because customers have so much information, it can't all be displayed on the main customers page, there's no room for it.

let me know if u find it ok.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

25 Aug 2010, 6:53 AM
#112
sabrina_it avatar

sabrina_it

New Zenner

Join Date:
Jul 2010
Location:
Italy
Posts:
5
Plugin Contributions:
0

Post #112 by sabrina_it

Yes, the problem is in the customer's details page (maybe I did not explain myself correctly in my last post).
For some reason I cannot explain, the information is not echoed on this page, even if the database contains it...
I've also tried to log in a zen shop as a customer and view the account information: in this page the extra field content is showed and is editable.
I've followed instructions, everything goes ok and I can't really understand what the problem could be.
Maybe some server setting?

Thank you anyway for your attention :smile:

Sabrina

25 Aug 2010, 3:50 PM
#113
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Post #113 by jackie_taferner

Oh, I see. So when the customer goes to "My Account" the field is not showing then?

Try re-uploading the tpl_modules_create_account.php file, make sure it is in the correct template folder.

If that fails, then open the file currently on your server, and make sure that the following code is in there:

<!-- start extrafield -->
<label class="inputLabel" for="extrafield"><?php echo ENTRY_EXTRAFIELD; ?></label>
<?php echo zen_draw_input_field('extrafield', $account->fields['customers_extrafield'], 'id="extrafield"') . (zen_not_null(ENTRY_EXTRAFIELD_TEXT) ? '<span class="alert">' . ENTRY_EXTRAFIELD_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<!-- end extrafield -->

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

26 Aug 2010, 7:22 AM
#114
sabrina_it avatar

sabrina_it

New Zenner

Join Date:
Jul 2010
Location:
Italy
Posts:
5
Plugin Contributions:
0

Post #114 by sabrina_it

No, the problem is on the admin's customer page.
That is, you log is as admin, go to customers, click on a customer and you see extrafield empty. But the value is present in the database...

Thanks
Sabrina

26 Aug 2010, 3:11 PM
#115
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Post #115 by jackie_taferner

Ok, re-upload the customers.php file and see if that fixes it. In fact, try re-uploading the entire set of files to be sure nothing was missed.

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

26 Aug 2010, 10:38 PM
#116
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Post #116 by hockey2112

I used the method in Post #3 to add a Tax ID field. I placed it underneath the Company Name field on the signup page. It all works great, but when I click into that customer's entry in the Customers section of admin so that I can add them to a Group Pricing group, I encounter an issue... when I click "Update" on that page, it erases the Tax ID info from the db completely. If i re-type the info in the Tax ID field and click Update, it essentially does not write it to the db.

Any ideas as to why this would happen?

Thanks!

27 Aug 2010, 3:36 AM
#117
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Post #117 by hockey2112

hockey2112:

I used the method in Post #3 to add a Tax ID field. I placed it underneath the Company Name field on the signup page. It all works great, but when I click into that customer's entry in the Customers section of admin so that I can add them to a Group Pricing group, I encounter an issue... when I click "Update" on that page, it erases the Tax ID info from the db completely. If i re-type the info in the Tax ID field and click Update, it essentially does not write it to the db.

Any ideas as to why this would happen?

Thanks!

I forgot to mention that this is on 1.39a

27 Aug 2010, 4:47 PM
#118
hockey2112 avatar

hockey2112

Zen Follower

Join Date:
Jun 2010
Posts:
204
Plugin Contributions:
0

Post #118 by hockey2112

I ended up reverting the files and then following the instructions in posts 14-15, and that worked! i was probably doing something wrong with the prior instructions.

I also added the Tax ID to the My Account editing page, but I can't figure out how to add the Company field there and have it work. Any ideas?

5 Nov 2010, 4:29 AM
#119
fourbit avatar

fourbit

Zen Follower

Join Date:
Sep 2004
Location:
MONTANA!!!
Posts:
97
Plugin Contributions:
0

Post #119 by fourbit

Just wanted to say thank you for this Mod. Just installed it on a version 1.3.9f and all went swimmingly. Good work.

Take care,
Paul

Beeee the space between the drops!
[email protected]
Hosting Duo - We're in this together!

14 Nov 2010, 5:41 AM
#120
sidewing avatar

sidewing

New Zenner

Join Date:
Mar 2010
Posts:
17
Plugin Contributions:
0

Post #120 by sidewing

post #14 craigw u r amazing.. hours of searching led me to that your info was the one to use, and it was.. i added about 15 fields following your info to the register, to the admin customer info, and to the account edit page... this was exactly what i was looking for, thank you.