I'm adding new fields to the checkout page. With a combo of instructions from various posts, I'm half way there.
I'm using the following to create the text box:
<?php echo zen_draw_input_field('NEW_LAUDER_FIELD'); ?>
That works, I can make lots of text boxes/input fields.
I found where to define NEW_LAUDER_FIELD In the: [COLOR=Red]/includes/templates/custom/templates/checkout_shipping.php
This is how I defined it:
define('NEW_LAUDER_FIELD', 'New Lauder Field');
Next I need to put the label for the text box/input field next to it (so people know what info to enter into the text box/field.)
I found this code:
<label class="inputLabel" for="firstname"><?php echo ENTRY_FIRST_NAME; ?></label>
<?php echo zen_draw_input_field('firstname'); ?>
When I use the code above a text box/input field with the label First Name appears next to it. That is good.
So I can figure out where ENTRY_FIRST_NAME is defined (includes/languages/custom/english.php), but I don't know where "firstname" (lower case, no spaces) is defined. This seems to be key to creating my label for the box.
I've duplicated the whole thing that works with firstname and replaced 'firstname' with the NEW_LAUDER_FIELD info like so:
<label class="inputLabel" for="newlauderfield"><?php echo NEW_LAUDER_FIELD; ?></label>
<?php echo zen_draw_input_field('newlauderfield'); ?>
But what I get is
NEW_LAUDER_FIELD [ empty field box ]
I want it to be:
New Lauder Field [ empty field box ]
as defined in checkout_shipping.php
I don't know where 'newlauderfield' is supposed to come from or where it is defined, or if that is even right. I think this is the key to my problem.
I know I went a little overboard on the description, but I wanted to be real clear. I hope I didn't make it more confusing in the process!
It seems like I'm missing something VERY simple.
Thanks for any help you can give!
Kathy



