Magento: Call to a member function getStoreId()

When trying to import a csv file with bundle products and you receive this error: <br /> <b>Fatal error</b>: Call to a member function getStoreId() on a non-object in <b>/home/solarma7/public_html/app/code/core/Mage/Bundle/Model/Selection.php</b> on line <b>73</b><br />

Solution is here:

you will need to modify this page:

on line 73

Change this code:

$storeId = Mage::registry('product')->getStoreId();

To this code:

$storeId = 0;//Mage::registry('product')->getStoreId();

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>