Check if shipping methods are available

Tweet, share & co

tweet fb share g+ share

Tags


Description

function to know that there is any shipping method available

Code

public function haveShippingMethods()
{
	if (count(Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getShippingRatesCollection())) {
		return true;
	}
	return false;
}