Zen Cart Logo
Forums / Customization from the Admin / Remove 'state/province' display in Shipping Estimator

Remove 'state/province' display in Shipping Estimator

Views: 1,588

Results 1 to 2 of 2
27 May 2011, 12:15 PM
#1
dukeofmodena avatar

dukeofmodena

New Zenner

Join Date:
Apr 2009
Location:
Neath, South Wales
Posts:
53
Plugin Contributions:
0

Remove 'state/province' display in Shipping Estimator

Hi, could someone please tell me how to remove the State/Province dropdown from the Shipping Estimator please?
Thanks.

27 May 2011, 1:10 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Remove 'state/province' display in Shipping Estimator

Open the following file:

includes\ templates\ YOUR TEMPLATE\ templates\ tpl_modules_shipping_estimator.php
Find the code below and remove it or comment it out:

<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
        }