firegento / firegento-germansetup

FireGento_GermanSetup
61 stars 27 forks source link

Bundle Product error when Sitewards B2B installed #209

Closed thomasklosinsky closed 10 years ago

thomasklosinsky commented 10 years ago

In newer versions of Extension Sitewards B2B there is no class Sitewards_B2BProfessional_Block_Price anymore so result is: Fatal error: Class 'Sitewards_B2BProfessional_Block_Price' not found in /var/www/app/code/community/FireGento/GermanSetup/Block/Bundle/Catalog/Product/Price/Abstract.php on line 40

Any fix already?

Best, Thomas

Schrank commented 10 years ago

Wow, I didn't even know, there is such a switch. If you need a quick fix, just remove everything from this file and add instead:

abstract class FireGento_GermanSetup_Block_Bundle_Catalog_Product_Price_Abstract
    extends Mage_Bundle_Block_Catalog_Product_Price
{

}
thomasklosinsky commented 10 years ago

Tried that (also before posting here), but running into this error instead:

Fatal error: Class 'FireGento_GermanSetup_Block_Bundle_Catalog_Product_Price_Abstract' not found in /var/www/app/code/community/FireGento/GermanSetup/Block/Bundle/Catalog/Product/Price.php on line 37

;)

Schrank commented 10 years ago

sorry, copied the class name from MageSetup. Updated the post. should be:

abstract class FireGento_GermanSetup_Block_Bundle_Catalog_Product_Price_Abstract
    extends Mage_Bundle_Block_Catalog_Product_Price
{

}
thomasklosinsky commented 10 years ago

Ah, just changed

abstract class FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract extends Mage_Bundle_Block_Catalog_Product_Price {

}

to

abstract class FireGento_GermanSetup_Block_Bundle_Catalog_Product_Price_Abstract extends Mage_Bundle_Block_Catalog_Product_Price {

}

and it works well

Schrank commented 10 years ago

This problem is not solved, it is just a quick fix :-)

sprankhub commented 10 years ago

Yes, but this will not be fixed in GermanSetup since GermanSetup is not maintained any longer. It will hopefully be fixed in MageSetup. An appropriate issue exists: https://github.com/firegento/firegento-magesetup/issues/41