0

I would like to uncheck all shipping methods. When a customer is on a checkout page, radio button is not preselected (all circles are empty).

  • which version of magento? – Amit Bera Apr 25 '16 at 12:38
0

copy template

app\design\frontend\base\default\template\checkout\onepage\shipping_method\available.phtml

to

app\design\frontend\Your-Pacakage\Your-Theme\default\template\checkout\onepage\shipping_method\available.phtml

changed below code ~line no 44

 <?php if ($_sole) : ?>
     <span class="no-display"><input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" /></span>
 <?php else: ?>
      <input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio"/>

changed to

<?php if ($_sole) : ?>
   <span class="no-display"><input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" /></span>
 <?php else: ?>
     <input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" class="radio"/>

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.