Forums / Templates, Stylesheets, Page Layout / Need to make Country a hidden field...

Need to make Country a hidden field...

Locked

Views: 1,385

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Apr 2007, 5:48 PM
#1
nomaad avatar

nomaad

New Zenner

Join Date:
Apr 2006
Posts:
13
Plugin Contributions:
0

Need to make Country a hidden field...

Alright, just upgraded to 1.3.7 and I am going through and trying to modify the pages I had edited in 1.2.6...

One I having issue with is blk_address_format. It is no longer there . . . I had edited the country area like so:

<!--// <tr> <td class="main"><?php //echo ENTRY_COUNTRY; ?></td> <?php $selected_country = ($_POST['country']) ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY; ?> <td class="main">//--><input name="country" type="hidden" value="<?php echo $selected_country ?>" /><?php /*echo zen_get_country_list('country', $selected_country) . ' ' . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); */?><!--//</td> </tr>//-->

This made the field hidden and still passed the correct code of 223 for the US. Does anyone have any idea what is needed now to do about the same thing? I tried to modify tpl_modules_create_account.php but the page still returns that your state atleast 2 letters and you must select a country.

Any help would be appreciated.

17 Apr 2007, 3:19 PM
#2
nomaad avatar

nomaad

New Zenner

Join Date:
Apr 2006
Posts:
13
Plugin Contributions:
0

Re: Need to make Country a hidden field...

Should this be in another topic maybe?

17 Apr 2007, 10:19 PM
#3
tmc_sherpa avatar

tmc_sherpa

Zen Follower

Join Date:
Mar 2007
Posts:
158
Plugin Contributions:
0

Re: Need to make Country a hidden field...

if your only going to sell in the US, I think removing the other countries from
admin locations countries will just put US up there, not hidden but no drop down box

Lazy and willing to work very hard to stay that way