CE 1.7を使用していますが、現在、Onepageチェックアウトから配送、配送方法、および支払い手順を削除しようとしています。から既に手順を削除しましたlocal\mage\checkout\block\onepage\abstract.php。私の問題は、「続行」をクリックすると、請求情報から確認まで進行しようとするときに発生します。どんなアイデアでも大歓迎です。
CE 1.7を使用していますが、現在、Onepageチェックアウトから配送、配送方法、および支払い手順を削除しようとしています。から既に手順を削除しましたlocal\mage\checkout\block\onepage\abstract.php。私の問題は、「続行」をクリックすると、請求情報から確認まで進行しようとするときに発生します。どんなアイデアでも大歓迎です。
回答:
以下のブロックファイルを次の機能で書き直してください。
書き換えクラス Mage_Checkout_Block_Onepage_Billing
    public function canShip()
    {
        return false;
    }書き換えクラス Mage_Checkout_Block_Onepage_Shipping_Method
    public function isShow()
    {
        return false;
    }書き換えクラス Mage_Checkout_Block_Onepage_Shipping
    public function isShow()
    {
          return false;
    }現在、進行に関連する問題が発生しないことを願っています。
少し古いですが、こちらをご覧ください:
ログインを削除 http://excellencemagentoblog.com/magento-onestep-checkout-remove-login-step
支払いと配送を削除する http://excellencemagentoblog.com/magento-onestep-checkout-remove-payment-and-shipping-method-step
支払いを削除する http://excellencemagentoblog.com/magento-onestep-checkout-remove-payment-method-step
配送を削除 http://excellencemagentoblog.com/magento-onestep-checkout-remove-shipping-method-step
ステップを追加 http://excellencemagentoblog.com/magento-onestep-checkout-add-step
@ heaven7 OnepageController.php全体でこれらのビットを変更しましたが、これを操作する以上のことをしましたが、コードをリストして、変更内容を正確に確認できるようにします。コアフォルダーではなく、ローカルコピーのみでこれを行うことを忘れないでください。
    `protected $_sectionUpdateFunctions = array(
           /* 'payment-method'  => '_getPaymentMethodsHtml',
            'shipping-method' => '_getShippingMethodsHtml',*/
            'review'          => '_getReviewHtml',
        );    public function saveBillingAction()
        {
           if ($this->_expireAjax()){
            return;
        }
            if ($this->getRequest()->isPost()) {
                $data = $this->getRequest()->getPost('billing', array());
                $customerAddressId =  $this->getRequest()->getPost('billing_address_id', false);
                $result = $this->getOnepage()->saveBilling($data, $customerAddressId);
    //            if (!isset($result['error'])) {
    //                if ($this->getOnepage()->getQuote()->isVirtual()) {
                        $this->loadLayout('checkout_onepage_review');
                        $result['goto_section'] = 'review';
                        $result['update_section'] = array(
                            'name' => 'review',
                            'html' => $this->_getReviewHtml()
                        );
                    }
                    /*elseif (isset($data['use_for_shipping']) && $data['use_for_shipping'] == 1) {
                        $this->saveShippingMethodAction();
                        $this->loadLayout('checkout_onepage_review');
                        $result['goto_section'] = 'review';
                        $result['update_section'] = array(
                            'name' => 'review',
                            'html' => $this->_getReviewHtml()
                        );
                        $result['allow_sections'] = array('shipping','review');
                        $result['duplicateBillingInfo'] = 'true';
                    }*/
                   /* else {
                        //$result['goto_section'] = 'shipping';
                        //TODO There is an error with loading the layout of the Review tab.
                        $result['goto_section'] = 'review';
                    }*/
               // }
                $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
            }     
     public function saveShippingAction()
    {
       if($this->_expireAjax()){
           return;
       }
        if ($this->getRequest()->isPost()) {
            $data = $this->getRequest()->getPost('shipping', array());
            $customerAddressId = $this->getRequest()->getPost('shipping_address_id', false);
            $result = $this->getOnepage()->saveShipping($data, $customerAddressId);
            if (!isset($result['error'])) {
                $this->saveShippingMethodAction();
                $this->loadLayout('checkout_onepage_review');
                $result['goto_section'] = 'review';
                $result['update_section'] = array(
                    'name' => 'review',
                    'html' => $this->_getReviewHtml()
                );
            }
            $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
        }
    }
public function saveShippingMethodAction()
    {
        if ($this->_expireAjax()) {
            return;
        }
        if ($this->getRequest()->isPost()) {
            $data = $this->getRequest()->getPost('shipping_method', '');
            $result = $this->getOnepage()->saveShippingMethod($data);
            /*
            $result will have erro data if shipping method is empty
            */
            if(!$result) {
                Mage::dispatchEvent('checkout_controller_onepage_save_shipping_method',
                        array('request'=>$this->getRequest(),
                            'quote'=>$this->getOnepage()->getQuote()));
                $this->getOnepage()->getQuote()->collectTotals();
                $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
                $result['goto_section'] = 'review';
                $result['update_section'] = array(
                    'name' => 'review',
                    'html' => $this->_getReviewHtml()
                );
            }
            $this->getOnepage()->getQuote()->collectTotals()->save();
            $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
        }
    }このリンクに従ってください
http://sapnandu-magento.blogspot.in/2012/04/magento-onestep-checkout-remove.html
または
http://knowledgevalley.blogspot.in/2012/01/magento-skip-shipping-method-from.html
それはあなたを助けるかもしれません