Magento auto fill shipping info and shipping_method
<p>I'm confusing at skipping shipping method in magento checkout.</p>

<p>I don't show shipping info and shipping method when checkout but I want to save 2 steps with default value whick get from helper.</p>

<p>Problem when i save shipping method, i check it and get $rate=false in Onepage.php.
Anyone help me please!!!!</p>

<p>My code here:</p>

<pre><code>        if (!isset($result['error'])) {
            /* check quote for virtual */
            if ($this-&gt;getOnepage()-&gt;getQuote()-&gt;isVirtual()) {
                $result['goto_section'] = 'payment';
                $result['update_section'] = array(
                    'name' =&gt; 'payment-method',
                    'html' =&gt; $this-&gt;_getPaymentMethodsHtml()
                );
            } elseif (isset($data['use_for_shipping']) &amp;&amp; $data['use_for_shipping'] == 1 ) {
                $result['goto_section'] = 'shipping_method';
                $result['update_section'] = array(
                    'name' =&gt; 'shipping-method',
                    'html' =&gt; $this-&gt;_getShippingMethodsHtml()
                );

                $result['allow_sections'] = array('shipping');
                $result['duplicateBillingInfo'] = 'true';
            } else {
                if(Mage::getSingleton('core/session')-&gt;getData('gc_send_type') == 'og') {
                    $this-&gt;saveShippingAction();
                    $forcedMethod = Mage::helper('checkout')-&gt;getDefaultShippingAddress();
                    $this-&gt;getOnePage()-&gt;getQuote()
                    -&gt;getShippingAddress()
                    -&gt;setShippingMethod($forcedMethod)
                    -&gt;save();
                    Mage::getSingleton('checkout/session')-&gt;setShippingMethod($forcedMethod);
                    $this-&gt;getRequest()-&gt;setPost('shipping_method', $forcedMethod);
                    $this-&gt;saveShippingMethodAction();
                    $result['goto_section'] = 'payment';
                    $result['update_section'] = array(
                            'name' =&gt; 'payment-method',
                            'html' =&gt; $this-&gt;_getPaymentMethodsHtml()
                    );
                    $result['allow_sections'] = array('shipping');
                    //$result['duplicateBillingInfo'] = 'true';
                } else {
                    $result['goto_section'] = 'shipping';
                }
            }
        }
        $this-&gt;getResponse()-&gt;setBody(Mage::helper('core')-&gt;jsonEncode($result));
    }
</code></pre>
