|
hi Allysin
i had to remove whole shipping things from onepage checkout page.
I tied and found the new solution. let u know i m working on latest version of magento 1.3.2.4
1.) open the file /app/code/core/Mage/Checkout/Block/onepage.php
find the function
public function getSteps()
go to the line no 44
u will found below line
$stepCodes = array('billing', 'shipping', 'shipping_method', 'payment', 'review');
comment it
//$stepCodes = array('billing', 'shipping', 'shipping_method', 'payment', 'review');
$stepCodes = array('billing', 'payment', 'review');
2.) now open the file /app/code/core/Mage/Checkout/controllers/OnepageController.php
find the function
public function saveBillingAction()
go to the line no 255 comment whole if loop
/* if (!isset($result['error'])) { */ /* check quote for virtual */ /* if ($this->getOnepage()->getQuote()->isVirtual()) { $result['goto_section'] = 'payment'; $result['update_section'] = array( 'name' => 'payment-method', 'html' => $this->_getPaymentMethodsHtml() ); } elseif (isset($data['use_for_shipping']) && $data['use_for_shipping'] == 1) {
$result['goto_section'] = 'payment';
$result['update_section'] = array( 'name' => 'shipping-method', 'html' => $this->_getShippingMethodsHtml() );
$result['allow_sections'] = array('shipping'); $result['duplicateBillingInfo'] = 'true'; } else { $result['goto_section'] = 'payment'; } }*/
and paste below script
if(!$result) { Mage::dispatchEvent('checkout_controller_onepage_save_shipping_method', array('request'=>$this->getRequest(), 'quote'=>$this->getOnepage()->getQuote())); $this->getResponse()->setBody(Zend_Json::encode($result));
$result['goto_section'] = 'payment'; $result['update_section'] = array( 'name' => 'payment-method', 'html' => $this->_getPaymentMethodsHtml() ); }
need to do some comment part wait for me
story is remaining
|