I am using the shipping estimator & royal mail download to estimate shipping costs, but as I am in the UK the only information needed to accurately calculate the cost is the country.
Is there any way I can remove the state and zipcode fields?
I am using the shipping estimator & royal mail download to estimate shipping costs, but as I am in the UK the only information needed to accurately calculate the cost is the country.
Is there any way I can remove the state and zipcode fields?
Still looking for an answer to this if anyone can help???![]()
I've been looking for a solution to this over an year now.. I would LOVE to know how to remove them as well..
Actually in the newer versions at least (1.3.7) this is really easy to do apparently. I remember having problems whit 1.2... just open template modules_shipping_estimator and remove or set to false state and zip...
Change in includes/modules/shipping_estimator.php ?
But how exactly? Im in sweden and dont need the state-choice either, unforunately im not skilled enough to figure it out myself either.
Well as you all asked so nicely
Open the following file:
includes\templates\YOUR TEMPLATE\templates\tpl_modules_shipping_estimator.php
Find the and remove the following 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" />
<?php
if(CART_SHIPPING_METHOD_ZIP_REQUIRED == "true"){
?>
<label class="inputLabel"><?php echo ENTRY_POST_CODE; ?></label>
<?php echo zen_draw_input_field('zip_code', $zip_code, 'size="7"'); ?>
<br class="clearBoth" />
<?php
}
?>
Done![]()