cancel
Showing results for 
Search instead for 
Did you mean: 

Error when displaying a configurable product

Error when displaying a configurable product

Hi

Im having trouble setting up configurable products in 1.9.1.0

The product does not display.

Example here:

Product Page

 

The error message I get is:

PHP Fatal error:  Call to undefined method Mage_Catalog_Model_Product_Type_Configurable_Price::getBasePrice() in /html/products/app/code/core/Mage/Catalog/Model/Product/Type/Configurable/Price.php on line 49

The function being called - getBasePrice() doesnt seem to exist anywhere.

 

Am I setting the product up incorrectly or is this a bug in Magento or something altogether different?

Thanks for any help.

2 REPLIES 2

Re: Error when displaying a configurable product

Hi,

That function should exist in the parent class of the class you're looking in.. e.g.:

 

Mage_Catalog_Model_Product_Type_Price  - which is located in app/code/core/Mage/Catalog/Model/Product/Type/Price.php - in the version I'm looking at - it's on line 58 - if your installation doesn't have that function in.. then you almost certainly have some issues with how you installed / upgraded it.

 

I would download a copy of the 1.9.1 from Magento and re-upload and replace all the files.

Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner

Re: Error when displaying a configurable product

Thanks for that.

 

I have checked that file and it is there and it does include the function at that line.

Not sure how I missed it before.

 

Any idea what else the issue may be?