I have created a supplier registration form based on this mod, where the only remaining problem is getting the Country to display as its Name rather than its Number (eg "Australia" rather than "13") after selection from the Country dropdown menu.
Rather than post the entire files, references to Country are as follows:
includes/modules/pages/supplier_registration/header_php.php
Line 33
$country = '';
After if (isset($_GET['action']) && ($_GET['action'] == 'send')) {
Line 61
$country = zen_db_prepare_input($_POST['zone_country_id']);
After // BOF Error Messages
Line 111
if (!zen_not_null($country)) {
$error = true;
$messageStack->add('supplier_registration', 'Please select your country');
}
After //assemble the email contents:
Line 203
'country:' . "\t" . $country . "\n" .
includes/templates/your_template/tpl_supplier_registration_default.php
After <fieldset>
Line 76
<label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?></label>
<?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" ') . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?>
What have I done wrong?
TIA
Bookmarks