Payment information shows nothing in one page checkout page magento -


i using magento ver. 1.9.1.0 want remove shipping information , shipping method step 1 page checkout page. changed code in core file like

in app\code\core\mage\checkout\block\onepage.php

public function getsteps()     {          $steps = array();         $stepcodes = $this->_getstepcodes();         /* remove shipping address , shipping method */         $excludestep=array_diff($stepcodes,array('shipping','shipping_method'));         //$excludestep=$stepcodes;         if ($this->iscustomerloggedin()) {             $stepcodes = array_diff($excludestep, array('login'));         }         foreach ($excludestep $step) {             $steps[$step] = $this->getcheckout()->getstepdata($step);         }         return $steps;      } 

and in app\code\core\mage\checkout\controllers\onepagecontroller.php

public function savebillingaction()     {         if ($this->_expireajax()) {             return;         }         if ($this->getrequest()->ispost()) { //            $postdata = $this->getrequest()->getpost('billing', array()); //            $data = $this->_filterpostdata($postdata);             $data = $this->getrequest()->getpost('billing', array());             $customeraddressid = $this->getrequest()->getpost('billing_address_id', false);              if (isset($data['email'])) {                 $data['email'] = trim($data['email']);             }             $result = $this->getonepage()->savebilling($data, $customeraddressid);             /* force full save shpping addredd */             $resultshipp = $this->getonepage()->saveshipping($data, $customeraddressid);             $resultshipmethod = $this->getonepage()->saveshippingmethod('freeshipping_freeshipping');             mage::getsingleton('checkout/type_onepage')->getquote()->getshippingaddress()-> setshippingmethod('freeshipping_freeshipping')->save();             if (!isset($result['error'])) {                 /* check quote virtual */                 if ($this->getonepage()->getquote()->isvirtual()) {                     $result['goto_section'] = 'payment';                     $result['update_section'] = array(                         'name' => 'payment-method',                         'html' => $this->_getpaymentmethodshtml()                     );                 } else                 {                     /* force full set of shipping free */                         $shipping_method=array('shipping_method'=>'freeshipping_freeshipping');                         $save_shippingmethod = $this->getonepage()->saveshippingmethod($shipping_method);                                   if(!$save_shippingmethod)                         {                         $event =    mage::dispatchevent('checkout_controller_onepage_save_shipping_method',                                         array('request'=>$this->getrequest(),                                             'quote'=>$this->getonepage()->getquote()));                         $this->getonepage()->getquote()->collecttotals();                         }                         $this->getonepage()->getquote()->collecttotals()->save();                         $this->getonepage()->getquote()->getshippingaddress()->setshippingmethod($shipping_method);                         /* */                     $result['goto_section'] = 'payment';                 }             }             $this->getresponse()->setbody(mage::helper('core')->jsonencode($result));         }     } 

after implementing above code, not showing shipping address , shipping method in process bar.but in payment information section, no payment method comming. before removing steps, cash on delivery method comming. there no payment method available.

if knows it, please me out. thanks


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -