Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Override multishipping? 
 
Julian B.
Member
 
Total Posts:  44
Joined:  2008-05-14
 

Hello everybody,

I am currently trying to remove the possibility to choose the shipping method from a shop (since it’s all free shipping, there’s no choice necessary).
I have already suceeded in removing it from onepage checkout.

However, I’m still trying to work out what to do about multishipping - could anyone give me a hint?
I already tried to override shippingPostAction() from MultishippingController.php by replacing

$this->_getCheckout()->setShippingMethods($shippingMethods);
with
$this->_getCheckout()->setShippingMethods('freeshipping_freeshipping');
However, that obviously did not do the trick, as magento still tells me to select a shipping method.

I’m not sure though, if my overriden controller is being used.
Here is what I added to the modules config.xml:

<config>
    <global>
        <
rewrite>
        <
cclib_order_shipmulti>
                <
from><![CDATA[#^/checkout/multishipping/#]]></from>
                
<to>/order/shipmulti/</to>
            </
cclib_order_shipmulti>
        </
rewrite>
    </global>
</
config>
(naturally this is only a part of the file).

If anyone has an idea - please help!

regards,
Julian

 
Magento Community Magento Community
Magento Community
Magento Community
 
Muhammed
Jr. Member
 
Avatar
Total Posts:  13
Joined:  2008-04-09
Istanbul, Turkey
 

You dont need to do it like this.

Go to admin panel “System” > “Configuration”. On “Shipping Settings” there is “Options” box. Set “Allow Shipping to multiple addresses” to “No” here.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top