Saturday, October 10, 2015

How to know the order can ship OR not in Magento


=> In Magento if your order contains virtual and downloadable products then the shipping section in chekout step will hide. For your custom condition you can use the below code:


$quote = Mage::getSingleton('checkout/session')->getQuote();
if($quote->isVirtual()){
echo "No Ship";
}else{
echo "Ship";
}