Scott Youmans
unread,Aug 2, 2012, 10:50:17 AM8/2/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ship...@googlegroups.com
We started seeing PHP Fatal error: Call to a member function getPrice() on a non-object in IllApps_Shipsync_Model_Shipping_Package_Item.php on line 64.
// LINE 64: $product = Mage::getModel('catalog/product')->loadByAttribute('sku', $item->getSku());
On a whim, I decided to change it to this, which seemed to fix it, though, of course, now we need to be mindful of this change when upgrading.
$product = Mage::getModel('catalog/product')->load($item->product_id);
Wondering if this is a valid solution or if there's some other issue going on here. The product added to the card had custom product options.
Running Magento Community 1.7.0