Remove Shipping Method tab in One Page Checkout - Magento

If your shipping method is Free shipping and if you want to remove the shipping method tab from Onepage checkout steps, You can do the following steps:


Copy app->code->Mage->Checkout->Block->Onepage->Shipping-> Method.php

and put into

app->code->local->Mage->Checkout->Block->Onepage->Shipping-> Method.php

Replace the function

public function isShow()
{
return !$this->getQuote()->isVirtual();
}

With

public function isShow()
{
if(array_key_exists('freeshipping', $this->getQuote()->getShippingAddress()->getGroupedAllShippingRates()))
return false;
return !$this->getQuote()->isVirtual();
}


Noe: Simple way that magento provides is, Adding Virtual Type or products, this wont show the shipping information as well as shipping method in the one page checkout.

3 comments:

Ankit Sharma said...

Not working on Magento 1.5.0.1,
It hides the shipping box but when I click continue from "Shipping Address" box, nothing happens and it doesn't forward to "Payment Information" step.
Nor,
Any error/exception log is generated.

pvahora said...

The information written in the article is descriptive and well written.It is also simple to read and understand.Good Read for more knowledge.
Hire Magento Developers

Unknown said...

I know good extension for this aim https://www.magestyapps.com/magento-extensions/skip-checkout-steps.html

Post a Comment