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
That did the trick
Thanks a lot Ivum!
Forgot to tell you how to automatically update the Country so there is no need for the update button and will save your customers some time!
Open the following file:
includes\templates\YOUR TEMPLATE\templates\tpl_modules_shipping_estimator.php
Find the following code
Replace that code with the following codeCode:<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" />
Remove the following codeCode:<label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?></label> <?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" onChange="this.form.submit();"'); ?> <br class="clearBoth" />
Code:<div class="buttonRow forward"><a href="_" onclick="return shipincart_submit('');"><?php echo zen_image_button(BUTTON_IMAGE_UPDATE, BUTTON_UPDATE_ALT); ?></a></div>
Hi,
Great fix.
Thanx
Ronald.
[FONT="Verdana"]http://www.xlventures.eu[/FONT]
Hello
when replacing the code above to remove the update button and refresh straight away my estimator stops working. when you choose a different country etc te postage doesn't change. anyone else had this?
it does refresh ok but doesn't change as it should. i would like to remove this button to make it easier so has anyone else had this?
thanks
Bookmarks