The site I will be opening soon only ships to the US via USPS. So in my case all the shipping estimator needs to know is the zip code.
I have deleted all other zones and countries, so only United states appears in the drop box.
In the \current\includes\templates\mytemplate\templates\tpl_modules_shipping_estimator. php file I deleted the code:to get rid of the state dropdown.PHP Code:<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), $state_zone_id, 'id="stateZone"');?>
<br class="clearBoth" id="stBreak" />
<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"') .' <span class="alert" id="stText"> </span>'; ?>
<br class="clearBoth" />
If I delete the code:to get rid of the country drop down the shipping estimate fails. I presume we need to feed the country code to the USPS API.PHP Code:<label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?></label>
<?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" onchange="update_zone(this.form);"'); ?>
<br class="clearBoth" />
So my question is, how can I modify that code not to display anything, but to shove in the United States country code?





