okie dokie! module has been approved and is now available in the downloads section.
http://www.zen-cart.com/index.php?ma...oducts_id=1694
okie dokie! module has been approved and is now available in the downloads section.
http://www.zen-cart.com/index.php?ma...oducts_id=1694
how would i change it to a radio button?
i need 2 radio buttons, yes or no
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...
ok, i will try that, thank you ( i will post back to let you know if it works.)
[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.
Last edited by platte; 6 Aug 2010 at 02:41 AM.
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?
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.
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/i...hp?article=113
and I found only the help files, which contain basically the same info as the link above.
That's a whole mysteryhow 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!
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.
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