1.) /app/design/frontend/default/detault/layout/checkout.xml
<!-- <block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="checkout/onepage/login.phtml"/> -->
2: Create local.xml
3.) /app/design/frontend/default/default/template/checkout/onepage.phtml
<!-- <block type="checkout/onepage_login" name="checkout.onepage.login" as="login" template="checkout/onepage/login.phtml"/> -->
2: Create local.xml
- <?xml version="1.0"?>
- <layout version="0.1.0">
- <checkout_onepage_index>
- <reference name="content">
- <! -- Complete process of removing steps is defined here: http://www.magentocommerce.com/wiki/5_-_modules_and_development/checkout/customizing_onepage_checkout_-_remove_shipping_method -->
- <remove name="checkout.onepage.login"/>
- </reference>
- </checkout_onepage_index>
- </layout>
3.) /app/design/frontend/default/default/template/checkout/onepage.phtml
- <!-- ADD THIS NEXT LINE!!! -->
- <input type="hidden" name="checkout_method" id="login:guest" checked="checked" value="guest"/>
- <script type="text/javascript">
- //<![CDATA[
- var accordion = new Accordion('checkoutSteps', '.head', true);
- <?php if($this->getActiveStep()): ?>
- accordion.openSection('opc-billing');
- <?php endif ?>
- var checkout = new Checkout(accordion,{
- progress: '<?php echo $this->getUrl('checkout/onepage/progress') ?>',
- review: '<?php echo $this->getUrl('checkout/onepage/review') ?>',
- saveMethod: '<?php echo $this->getUrl('checkout/onepage/saveMethod') ?>',
- failure: '<?php echo $this->getUrl('checkout/cart') ?>'}
- );
- // Go to the next method on start (it will look for the input we added above)
- //IE fix
- var cb = $("login:guest");
- cb.checked = true;
- checkout.setMethod(); // MAKE SURE TO ADD THIS LINE!!!
- //]]>
- </script>
Thanks for the module! this module is helpful for me
ReplyDelete