Zen Follower
- Join Date:
- Sep 2006
- Posts:
- 455
- Plugin Contributions:
- 0
COWOA Module (my update for ZC v1.3.x)
there are no install instructions? plus, my admin file is not called admin...so what do to?
Views: 65,981
Zen Follower
there are no install instructions? plus, my admin file is not called admin...so what do to?
Zen Follower
nevermind, they are on the BOTTOM of one of the text files. Since all of the fixes are listed first, I did not scroll to the bottom. Sorry for the trouble.:lamo:
New Zenner
Hi!
I notice that when COWOA is use. A blank link show above the header in admin/customers. When you click on the link you can view the COWOA customer. If you have 5 COWOA customers. Then you will have 5 blank links. See attachment.
Does anyone have this problem?
Great add on!:smile:
New Zenner
Newbie trying to install COWOA....on Step 1a can someone give me the EXACT path to find:
<?php if (($_SESSION['customer_id']) { ?>The directions say to edit the tpl_header.php file in my custom templates on my cart but I cant find it....thanks
New Zenner
Hello lilkanini,
Located in includes/tempates/YOUR_TEMPLATE/common/tpl_header.php.
Page 16 / Post 156:> JTheed:
It will not cause a problem. Someone just didn't want the MY Account to show up on the page. If you do not want it to show up, try using the Admin/Tools/Developers Tool Kit, and look for
HEADER_TITLE_MY_ACCOUNTYour MY Account title may be in a different file.
New Zenner
Thanks!
New Zenner
I have another small problem. I have completed all the steps in the MOD - except I don't understand Step #4 AT ALL! What exactly am I supposed to do?
As it stands now when I go to check out I have (3) boxes....the first one says "Create an Account" and it takes them to the page to create an account. The 2nd one says "enter your email if you already have an account". The 3rd one says "Check out without account" but when you enter YES it takes them to the Create Account page.....what the heck did I do wrong? Thanks!
New Zenner
lilkanini:
I have another small problem. I have completed all the steps in the MOD - except I don't understand Step #4 AT ALL! What exactly am I supposed to do?
As it stands now when I go to check out I have (3) boxes....the first one says "Create an Account" and it takes them to the page to create an account. The 2nd one says "enter your email if you already have an account". The 3rd one says "Check out without account" but when you enter YES it takes them to the Create Account page.....what the heck did I do wrong? Thanks!
Nevermind...I'm brain dead - it was just asking for shipping information...not new account information.
But another question - how do I move the COWOA option to the top of the checkout page?
New Zenner
lilkanini:
But another question - how do I move the COWOA option to the top of the checkout page?
Look in: includes/templates/YOUR_TEMPLATE/templates/tpl_login_default.php
Move the code to your desire destination. Remember to always backup first before doing anything.
<!-- BOF COWOA -->
<?php if (COWOA_STATUS == 'true') { ?>
<fieldset>
<legend>Checkout Without Account</legend>
<?php echo TEXT_RATHER_COWOA; ?>
<div class="buttonRow forward">
<?php echo "<a href=\"" . zen_href_link(FILENAME_NO_ACCOUNT, '', 'SSL') . "\">"; ?>
<?php echo zen_image_button(BUTTON_IMAGE_CONTINUE, BUTTON_CONTINUE_ALT); ?></a></div>
<br class="clearBoth" />
</fieldset>
<?php } ?>
<!-- BOF COWOA -->
New Zenner
Thanks so much....you should be more than just a "new zenner"!
Now I want to move the "returning customers" box but I keep getting in wrong....how do I know exactly what code to grab?
Also, my "continue" button for new account creation says 'BUTTON_CONTINUE' instead of just 'continue'....how do I fix that?
Thanks!
New Zenner
Rizla:
I'm trying to get this mod installed but I get the following on the SQL patch:
1364 Field 'query_keys_list' doesn't have a default value
in:
[INSERT INTO query_builder ( query_id , query_category , query_name , query_description , query_string ) VALUES ( '', 'email,newsletters', 'Permanent Account Holders Only', 'Send email only to permanent account holders ', 'select customers_email_address, customers_firstname, customers_lastname from TABLE_CUSTOMERS where COWOA_account != 1 order by customers_lastname, customers_firstname, customers_email_address');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.Any ideas?
Thanks
Replace line three of the COWOA install SQL, i.e.:
INSERT INTO query_builder ( query_id , query_category , query_name , query_description , query_string ) VALUES ( '', 'email,newsletters', 'Permanent Account Holders Only', 'Send email only to permanent account holders ', 'select customers_email_address, customers_firstname, customers_lastname from TABLE_CUSTOMERS where COWOA_account != 1 order by customers_lastname, customers_firstname, customers_email_address');
to this:
INSERT INTO query_builder ( query_category , query_name , query_description , query_string, query_keys_list ) VALUES ( 'email,newsletters', 'Permanent Account Holders Only', 'Send email only to permanent account holders ', 'select customers_email_address, customers_firstname, customers_lastname from TABLE_CUSTOMERS where COWOA_account != 1 order by customers_lastname, customers_firstname, customers_email_address', '');
New Zenner
Hello All!
I just installed the COWOA mod on my1.3.9d version.
After selecting "checkout without an account" the customer is led to a page that contains the appropriate side boxes with a "Page not found" error message in the center box.
Have no idea how to resolve. Would appreciate any assistance. :lamo:
Inactive
I have a question
In my tpl_header.php file I don't have this code at all <?php if (($_SESSION['customer_id']) { ?>
Here is what I have ```php
<?php /** * Common Template - tpl_header.php * * this file can be copied to /templates/your_template_dir/pagename<br /> * example: to override the privacy page<br /> * make a directory /templates/my_template/privacy<br /> * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_header = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_header.php 3392 2006-04-08 15:17:37Z birdbrain $ */ ?> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?> <!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <div id="headerWrapper"> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> </div> </div> <div class="clearBoth"></div> <!--eof-navigation display--> <!--eof-header logo and navigation display--> <!--bof-header ezpage links--> <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?> <?php } ?> <!--eof-header ezpage links--> <!--bof-optional categories tabs navigation display--> <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?> <!--eof-optional categories tabs navigation display--> <!--bof-drop down menu display--> <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?> <!--eof-drop down menu display--> <div class="clearBoth"></div> <?php } ?> ```Where would I add this code? <?php if (($_SESSION['customer_id']) && (!$_SESSION['COWOA']=='True')) { ?>
Thanks for all your help. Oh and my site is in my signature. (Just in case)
Zen Follower
<?php /** * Common Template - tpl_header.php * * this file can be copied to /templates/your_template_dir/pagename<br /> * example: to override the privacy page<br /> * make a directory /templates/my_template/privacy<br /> * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_header = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_header.php 3392 2006-04-08 15:17:37Z birdbrain $ */ ?> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?> <!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <div id="headerWrapper"> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> </div> </div> <div class="clearBoth"></div> <!--eof-navigation display--> <!--eof-header logo and navigation display--> <!--bof-header ezpage links--> <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?> <?php } ?> <!--eof-header ezpage links--> <!--bof-optional categories tabs navigation display--> <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?> <!--eof-optional categories tabs navigation display--> <!--bof-drop down menu display--> <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?> <!--eof-drop down menu display--> <div class="clearBoth"></div> <?php } ?> ``` > > Where would I add this code? <?php if (($_SESSION['customer_id']) && (!$_SESSION['COWOA']=='True')) { ?> > > Thanks for all your help. Oh and my site is in my signature. (Just in case)nolsowski:
I have a question
In my tpl_header.php file I don't have this code at all <?php if (($_SESSION['customer_id']) { ?>
Here is what I have ```php
The reason you can't find the code to change is because the drop down menu code replaces the code that you're supposed to change (as I explained in my PM to you, just wanted to post it here in case someone else runs into the same issue and it hasn't been addressed before).
So if you have the css drop down menu installed, you can skip this step.
Inactive
kamelion0927:
The reason you can't find the code to change is because the drop down menu code replaces the code that you're supposed to change (as I explained in my PM to you, just wanted to post it here in case someone else runs into the same issue and it hasn't been addressed before).
So if you have the css drop down menu installed, you can skip this step.
Thank you my dear! :)
New Zenner
I had this problem crop up in the past couple of days on a site I've been developing. We're due to launch on Monday and I'm at my wits' end. My client expects a large proportion of her customers to want the COWOA functionality.
Here's what's happening: order confirmation emails get sent fine to test customers with an account but they're not going out to test customers who check out without an account. I believe this cropped up after I installed the Newsletter-Only Subscription mod, so I removed that mod within the admin and reverted all affected files to their pre-Newsletter-mod state. Didn't fix the email problem. I've searched through the Newsletter-Only forum but couldn't find any clues, except for one mention that that mod and this one don't always play nice, but it didn't seem to have anything to do with order confirmation emails.
'Enable Order Status' is set to true in the COWOA config. I have email archiving turned on and the emails are showing up in the table in phpMyAdmin but they're not reaching their destination (various email addresses that I own, and the emails are not in the spam folders).
I checked the FAQ under problems sending/receiving email. I haven't changed anything in the store's email config recently, and order confirmation emails are going out fine to test customers with accounts so I'm guessing it's not a problem in the email config.
On a side note, the Contact Us form isn't working now either--no email arrives to the selected address. Used to work fine. I can send email using admin > tools > send email.
I haven't updated ZC recently or done anything other than install (and then uninstall) Newsletter-Only Subscription. Oh, I renamed the admin folder, but that hasn't caused any problems elsewhere.
I get the feeling that the solution to this is either really basic or quite subtle--in either case, I think I need a fresh pair of eyes to help suss it out!
Thanks so much.
ZC v1.3.9d
MySQL v5.1.52-cll
PHP v5.2.17
CEON URI mapping 3.6.3
Column Layout Grid 1.3.8
Email Address Exporter 1.2c
EZ-Thumbnails v.1.01
EZ-Page Improved TOC 1.1
Giftwrap 2.8
HideCategories 2.0
IntegratedCOWOA 2.0c1
RECENTLY UNINSTALLED Newsletter Subscribe 2.2.2
Current ZC version: 1.5, upgraded manually from 1.3.9h.
Mods: CEON URI mapping, Column Layout Grid, EZ Thumbnails, EZ Page Improved TOC, Giftwrap, Hide Categories, Integrated COWOA, USPS and Shipstation, CKEditor.
New Zenner
EDIT: [I don't see an edit button next to my above post #295]
Update about the email archive in phpMyAdmin: Turns out the missing emails that were supposed to be sent to COWOA customers are NOT showing up in the table. They used to, before the Newsletter-Only Subscription mod install/uninstall. So the emails are never even getting created, I guess.
Current ZC version: 1.5, upgraded manually from 1.3.9h.
Mods: CEON URI mapping, Column Layout Grid, EZ Thumbnails, EZ Page Improved TOC, Giftwrap, Hide Categories, Integrated COWOA, USPS and Shipstation, CKEditor.
New Zenner
EDIT AGAIN: [Sheesh. Can you tell I'm usually just a lurker on forums? I can't seem to edit my posts!]
Update on the update: The missing emails ARE in the email archive, so Zen Cart thinks they're being sent.
Current ZC version: 1.5, upgraded manually from 1.3.9h.
Mods: CEON URI mapping, Column Layout Grid, EZ Thumbnails, EZ Page Improved TOC, Giftwrap, Hide Categories, Integrated COWOA, USPS and Shipstation, CKEditor.
New Zenner
FOlks - Apologies if I have missed this however I am looking to combine COWOA and captialize_signup_fields_v1.0b, the upper case script used in no_account.php, the capital leading letter / upper case postcode script.
I've pasted the following into the exact same area of tpl_modules_no_account.php however if does nothing....
Any help appreciated.
Totally Zenned
Hi Mammoth
Compare your tpl_modules_no_acount.php with this, especially the distribution of "onchange="capitalize(this,x)", where x=0 or 1:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=create_account.<br />
* Displays Create Account form.
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2007 Joseph Schilz
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: J_Schilz for Integrated COWOA - 14 April 20077
*/
?>
<script type="text/javascript">
function capitalize(f,m) {
if (m) /*cap words*/ {
var temp, tempC, pre, post, strlen;
temp = f.value.toLowerCase();
stringLen = temp.length;
if (stringLen > 0) {
for (i = 0; i < stringLen; i++) {
if (i == 0) {
tempC = temp.substring(0,1).toUpperCase();
post = temp.substring(1,stringLen);
temp = tempC + post;
} else {
tempC = temp.substring(i,i+1);
if (tempC == " " && i < (stringLen-1)) {
tempC = temp.substring(i+1,i+2).toUpperCase();
pre = temp.substring(0,i+1);
post = temp.substring(i+2,stringLen);
temp = pre + tempC + post;
}
}
}
}
} else /*cap all*/ {
var temp = f.value.toUpperCase();
}
f.value = temp;
};
</script>
<div>
<?php if ($messageStack->size('no_account') > 0) echo $messageStack->output('no_account'); ?>
<div class="alert back"><label class="inputLabel"> </label><?php echo FORM_REQUIRED_INFORMATION; ?></div>
<br />
<?php
if (DISPLAY_PRIVACY_CONDITIONS == 'true') {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_PRIVACY_CONDITIONS; ?></legend>
<div class="information"><?php echo TEXT_PRIVACY_CONDITIONS_DESCRIPTION;?></div>
<?php echo zen_draw_checkbox_field('privacy_conditions', '1', false, 'id="privacy"');?>
<label class="checkboxLabel" for="privacy"><?php echo TEXT_PRIVACY_CONDITIONS_CONFIRM;?></label>
</fieldset>
<?php
}
?>
<!-- COWOA - Check Cart to see if money is owed or free products -->
<?php
if ($_SESSION['cart']->show_total() == 0 and COWOA_EMAIL_ONLY == 'true') {
?>
<!-- COWOA - Cart Totals are Zero, so just ask for e-mail address-->
<fieldset>
<legend><?php echo TABLE_HEADING_CONTACT_DETAILS; ?></legend>
<label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="email-address"') . (zen_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_EMAIL_ADDRESS_TEXT . '' . EMAIL_TEXT_COWOA . '</span>':''); ?>
<br class="clearBoth" />
</fieldset>
<fieldset>
<legend><?php echo ENTRY_EMAIL_PREFERENCE; ?></legend>
<?php echo zen_draw_radio_field('email_format', 'HTML', ($email_format == 'HTML' ? true : false),'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' . zen_draw_radio_field('email_format', 'TEXT', ($email_format == 'TEXT' ? true : false), 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?>
<br class="clearBoth" />
</fieldset>
<?php
} else {
if (ACCOUNT_COMPANY == 'true') {
?>
<fieldset>
<legend><?php echo CATEGORY_COMPANY; ?></legend>
<label class="inputLabel" for="company"><?php echo ENTRY_COMPANY; ?></label>
<?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company" onchange="capitalize(this,1);"') . (zen_not_null(ENTRY_COMPANY_TEXT) ? '<span class="alert">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
</fieldset>
<?php
}
?>
<fieldset>
<?php
if (ACCOUNT_GENDER == 'true') {
?>
<?php echo zen_draw_radio_field('gender', 'm', '', 'id="gender-male"') . '<label class="radioButtonLabel" for="gender-male">' . MALE . '</label>' . zen_draw_radio_field('gender', 'f', '', 'id="gender-female"') . '<label class="radioButtonLabel" for="gender-female">' . FEMALE . '</label>' . (zen_not_null(ENTRY_GENDER_TEXT) ? '<span class="alert">' . ENTRY_GENDER_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="firstname"><?php echo ENTRY_FIRST_NAME; ?></label>
<?php echo zen_draw_input_field('firstname', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' id="firstname" onchange="capitalize(this,1);"') . (zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="lastname"><?php echo ENTRY_LAST_NAME; ?></label>
<?php echo zen_draw_input_field('lastname', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_lastname', '40') . ' id="lastname" onchange="capitalize(this,1);"') . (zen_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="alert">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="street-address"><?php echo ENTRY_STREET_ADDRESS; ?></label>
<?php echo zen_draw_input_field('street_address', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' id="street-address" onchange="capitalize(this,1);"') . (zen_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
if (ACCOUNT_SUBURB == 'true') {
?>
<label class="inputLabel" for="suburb"><?php echo ENTRY_SUBURB; ?></label>
<?php echo zen_draw_input_field('suburb', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_suburb', '40') . ' id="suburb" onchange="capitalize(this,1);"') . (zen_not_null(ENTRY_SUBURB_TEXT) ? '<span class="alert">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="city"><?php echo ENTRY_CITY; ?></label>
<?php echo zen_draw_input_field('city', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' id="city" onchange="capitalize(this,1);"') . (zen_not_null(ENTRY_CITY_TEXT) ? '<span class="alert">' . ENTRY_CITY_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
if (ACCOUNT_STATE == 'true') {
if ($flag_show_pulldown_states == true) {
?>
<label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label>
<?php
echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'id="stateZone"');
if (zen_not_null(ENTRY_STATE_TEXT)) echo ' <span class="alert">' . ENTRY_STATE_TEXT . '</span>';
}
?>
<?php if ($flag_show_pulldown_states == true) { ?>
<br class="clearBoth" id="stBreak" />
<?php } ?>
<label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label>
<?php
echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state" onchange="capitalize(this,1);"');
if (zen_not_null(ENTRY_STATE_TEXT)) echo ' <span class="alert" id="stText">' . ENTRY_STATE_TEXT . '</span>';
if ($flag_show_pulldown_states == false) {
echo zen_draw_hidden_field('zone_id', $zone_name, ' ');
}
?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE; ?></label>
<?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '20') . ' id="postcode" onchange="capitalize(this,0);"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<legend><?php echo TABLE_HEADING_ADDRESS_DETAILS; ?></legend>
<label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?></label>
<?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
</fieldset>
<fieldset>
<legend><?php echo TABLE_HEADING_CONTACT_DETAILS; ?></legend>
<label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="email-address"') . (zen_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?>
<!-- bof COWOA2c #158
<br class="clearBoth" />
<input type="hidden" name="email_format" value="TEXT" checked="checked" id="email-format-text" />
eof COWOA2c -->
<br class="clearBoth" />
<label class="inputLabel" for="telephone"><?php echo ENTRY_TELEPHONE_NUMBER; ?></label>
<?php echo zen_draw_input_field('telephone', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', '20') . ' id="telephone"') . (zen_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="alert2">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?>
<?php
if (ACCOUNT_FAX_NUMBER == 'true') {
?>
<br class="clearBoth" />
<label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>
<?php echo zen_draw_input_field('fax', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_fax', '20') . 'id="fax"') . (zen_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="alert2">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?>
<?php
}
?>
</fieldset>
<fieldset>
<legend><?php echo ENTRY_EMAIL_PREFERENCE; ?></legend>
<?php echo zen_draw_radio_field('email_format', 'HTML', ($email_format == 'HTML' ? true : false),'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' . zen_draw_radio_field('email_format', 'TEXT', ($email_format == 'TEXT' ? true : false), 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?>
<br class="clearBoth" />
</fieldset>
<?php
if (CUSTOMERS_REFERRAL_STATUS == 2) {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_REFERRAL_DETAILS; ?></legend>
<label class="inputLabel" for="customers_referral"><?php echo ENTRY_CUSTOMERS_REFERRAL; ?></label>
<?php echo zen_draw_input_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', '15') . ' id="customers_referral"'); ?>
<br class="clearBoth" />
</fieldset>
<?php } ?>
</div>
<?php
}
?>
Cheers
Tell staff why this post should be reviewed.