Remove "state/municipality" Field From Shipping Calculator

Hi,

When the customer goes to the "View cart" page and clicks "Calculate shipping", there are two fields under the country dropdown - "State/municipality" and "Zip code". How can I remove the "State" field? My CS cart (v. 4.3.1) is not set up with states within my country, so the shipping calculator will not show the proper shipping fee if the customer fills out this field. It only works properly if the zip code is input.

Thanks in advance for any help :)

Hi,

When the customer goes to the "View cart" page and clicks "Calculate shipping", there are two fields under the country dropdown - "State/municipality" and "Zip code". How can I remove the "State" field? My CS cart (v. 4.3.1) is not set up with states within my country, so the shipping calculator will not show the proper shipping fee if the customer fills out this field. It only works properly if the zip code is input.

Thanks in advance for any help :)

Comment the following part of code:

{__("state")} - {__("select_state")} - {foreach $states[$cart.user_data.s_country] as $state} {$state.state} {foreachelse} - {__("select_state")} - {/foreach}

in the design/themes/[THEME]/templates/views/checkout/components/shipping_estimation.tpl file.

Hi,

Thanks for your reply!

I found that part of the code and I commented out with a after it yesterday. I then went into the admin and clicked Clear cache.

Since nothing had changed, I tried again today. I was unsure if the commenting out worked, so this time I deleted those lines. I saved the file and logged into the admin and clicked Clear cache again.

I also tried clearing the cache in my browser and clear cache in the admin section of cscart.

But the State field still remains. What am I doing wrong?

Hi,

Thanks for your reply!

I found that part of the code and I commented out with a after it yesterday. I then went into the admin and clicked Clear cache.

Since nothing had changed, I tried again today. I was unsure if the commenting out worked, so this time I deleted those lines. I saved the file and logged into the admin and clicked Clear cache again.

I also tried clearing the cache in my browser and clear cache in the admin section of cscart.

But the State field still remains. What am I doing wrong?

Try to clear it manually by deleting the var/cache directory.

Here is an addon that lets you choose the fields that should be visible in the "choose shipping window":

http://marketplace.cs-cart.com/add-ons/customer-experience/choose-shipping-estimation-fields.html

Thanks for everyone's input, it works now after manually deleting the var/cache directory :)

Hello

I'm having similar issue, but cannot find this location:

design/themes/[THEME]/templates/views/checkout/components/shipping_estimation.tpl

I'm using version 4.7.3 mv, has this location been changed?

Thanks

The code should be there. If you use 3rd party theme, try to find necessary file in the parent theme. Usually it is

design/themes/responsive/templates/views/checkout/components/shipping_estimation.tpl