So I have removed the "shipping address" from checkout page, and only using billing information. I also want to remove the option of "default shipping address" which is in customers account.



In the template app/design/frontend/base/default/template/customer/address/edit.phtml you can see at the bottom there are two input items one for default shipping and one for default billing addresses.

<li<?php if($this->canSetAsDefaultShipping()) echo ' class="control"' ?>>
    <?php if($this->isDefaultShipping()): ?>
        <strong><?php echo $this->__('Default Shipping Address') ?></strong>
    <?php elseif($this->canSetAsDefaultShipping()): ?>
        <input type="checkbox" id="primary_shipping" name="default_shipping" value="1" title="<?php echo $this->__('Use as My Default Shipping Address') ?>" class="checkbox" /><label for="primary_shipping"><?php echo $this->__('Use as my default shipping address') ?></label>
    <?php else: ?>
        <input type="hidden" name="default_shipping" value="1" />
    <?php endif; ?>

What I would suggest is that you have two options.

  1. Override the template used via layout xml and then simply remove this part from your new template.
  2. Override the block so that the function canSetAsDefaultShipping always returns false.

Personally I would choose the template way at the moment as template changes feel easier to me.

If you have a sample layout xml the following snippet should work.

    <reference name="customer_address_edit">
        <action method="setTemplate"><template>your/path/to/template.phtml</template></action>
  • I really don't know how to override the template. – Lucky Dhillon Aug 16 '14 at 10:17
  • @LuckyDhillon I have added the layout code that should do it for you. Does your theme have a local.xml layout file? – David Manners Aug 16 '14 at 10:22
  • The one local.xml is in /public_html/app/design/frontend/ultimo/default/layout/local.xml and the other is in /public_html/app/etc/local.xml .. I am just working to get my checkout like this i1250.photobucket.com/albums/hh525/Dark934/checkout.jpg , i1250.photobucket.com/albums/hh525/Dark934/checkout2.jpg – Lucky Dhillon Aug 16 '14 at 10:25
  • @LuckyDhillon you could add this into there but it would break if you updated the ultimo design. If you are more comfotable you could rewrite the block instead. – David Manners Aug 16 '14 at 10:28
  • i did some changes into styles.css and checkout page. check www.zumastic.com – Lucky Dhillon Aug 16 '14 at 10:31

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.