isShippingLabelsAvailable : Magento Issue

isShippingLabelsAvailable : Magento Issue

March 30, 2012 Magento Version 1.6 has a bug related to isShippingLabelsAvailable() method. When you try to make shipment an order you may be get a error : Fatal error: Call to a member function isShippingLabelsAvailable() on a non-object in app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Items.php on line 132 This error lies in the Mage_Adminhtml_Block_Sales_Order_Shipment_Create_Items class on line 130 within the canCreateShippingLabel() method. In order to resolve it open app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Items.php Replace the below code : public function canCreateShippingLabel() { return $this->getOrder()->getShippingCarrier()->isShippingLabelsAvailable(); } with below code: public function canCreateShippingLabel() { $carrier = $this->getOrder()->getShippingCarrier(); if(method_exists($carrier, 'isShippingLabelsAvailable')) { return $carrier->isShippingLabelsAvailable(); } else { return false; } } Upload the Items.php Are you looking for Magento Website Developement

Related Posts

from my blog


How To Reset Admin Password in Magento

January 20, 2017

As an ecommerce website developer or magento website developer, sometime we  get the a situation when we forget the magento website admin access detail. To reset the password of any...

How to show all attribute after layered navigation filter in Magento

April 10, 2015

Magento Layered Navigation is really good for filter the product but problem is that, if we select any attribute like color or price all other attribute hide which are not...

How to fix layered navigation filer URL in Magento?

April 2, 2015

Magento is really good eCommerce CMS in terms of functionality. Layered Navigation is really good feature of Magento to filter the product in frontend side. Only problem with the layered navigation filter...