Hallo Zusammen,
bei uns kommt das ekomi-Modul von Fatchip zum Einsatz. In diesem Modul wird die oxviewconfig extended. Nun haben wir ein weiteres Modul geschrieben, dass ebenfalls die oxviewconfig erweitert.
Von einander getrennt funktionieren beide Module einwandfrei. Wenn man allerdings beide Module aktiviert, wird ins Error_log die folgende Meldung geschrieben:
Function ‘getXSellingProducts’ does not exist or is not accessible! (fcEkomi_oxViewconfig)
Die aufgerufene Methode befindet sich allerdings in dem anderen Modul und nicht in ekomi.
Die Meta-Data sieht wie folgt aus:
$aModule = array(
'id' => 'etxselling',
'title' => 'ET Cross Selling',
'description' => array(
'de' => 'Cross-Selling für den Warenkorb',
'en' => 'Implement cross selling in the basket/checkout',
),
'thumbnail' => 'logo.png',
'version' => '1.0.0',
'extend' => array(
'oxviewconfig' => 'et/etxselling/core/etxselling_viewconfig',
),
'blocks' => array(
array('template' => 'page/checkout/basket.tpl', 'block' => 'etxselling_products', 'file' => '/blocks/products.tpl'),
array('template' => 'page/checkout/user.tpl', 'block' => 'etxselling_products', 'file' => '/blocks/products.tpl'),
array('template' => 'page/checkout/payment.tpl', 'block' => 'etxselling_products', 'file' => '/blocks/products.tpl'),
array('template' => 'page/checkout/order.tpl', 'block' => 'etxselling_products', 'file' => '/blocks/products.tpl'),
),
'templates' => array(
'list_xselling.tpl' => 'et/etxselling/blocks/list_xselling.tpl',
'list_tooltip.tpl' => 'et/etxselling/blocks/list_tooltip.tpl'
),
'settings' => array(
array('group' => 'items', 'name' => 'sXSellTag', 'type' => 'str', 'value' => 'crossselling'),
array('group' => 'items', 'name' => 'bXSellShowRating', 'type' => 'bool', 'value' => true),
)
);
Die Klasse, die oxviewconfig erweitern sieht wie folgt aus:
class etxselling_viewconfig extends etxselling_viewconfig_parent
{
public function getXSellingProducts()
{
if( true || $this->getActiveClassName() == 'start' ){
return $this->getXSellingProductsStart();
}
}
public function ratingIsActive() {
return oxRegistry::getConfig()->getConfigParam('bXSellShowRating');
}
public function getXSellingProductsStart()
{
$oArtList = oxNew( 'oxarticlelist' );
$oArtList->setSqlLimit(0, 3);
$oArtList->loadTagArticles( oxRegistry::getConfig()->getConfigParam('sXSellTag'), 0 );
return $oArtList;
}
}
Hat jemand zufällig eine Idee woran das beschriebene Verhalten liegen kann?
Danke.
Marc