1

in cart page, you can see there is an option to find shipping charges by entering the zip code.

we removed "State" field, so its displaying like this now :

enter image description here

you can see country * "India".

I want to hide this. i done this by commented the related code in

 app/design/frontend/base/default/template/checkout/cart/shipping.phtml
<!--
    <label for="country"><em>*</em><?php echo $this->__('Country') ?></label>
    <div class="input-box">
    <?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
    </div>
-->

now , its not calculating shipping charges when i entered zip code.

what is the correct procedure to hide & why shipping charges are not calculating when i hide the "country".

also its not displaying the message "Shipping is available or not"

ex: you can check here in cart page by adding this item to cart link

enter image description here

2
1

don't comment hide by adding the div. this will work for you..

<div style="display:none"><label for="country"><em>*</em><?php echo $this->__('Country') ?></label>
    <div class="input-box">
    <?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
    </div></div>
3
  • how to do the same in magento 2 – sangan Oct 26 '17 at 13:15
  • @sangan most probably do it with js. i didn't do anything on M2 checkout yet. – Qaisar Satti Oct 26 '17 at 14:31
  • ok,i tried but no effect – sangan Oct 26 '17 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.