[TYPO3-commerce] Hardcoded rendering configuration for articles
Franz Koch
typo.removeformessage at fx-graefix.de
Sat Sep 1 17:56:21 CEST 2007
Hi,
just found out that the rendering of articles is hardcoded to the TS
settings for the singleView, which should be changed.
See line 564 of class.tx_commerce_pibase.php:
----
$tsconf=$this->conf['singleView.']['articles.'];
----
The viewtype has to be passed to the method 'getArticleMarker' -
otherwise this is useless!
Fortunately this method is only called three times from within pi1
(lines 497, 545 and 585).
simply change the method-calls to:
-----
$this->getArticleMarker('...',true,$viewKind.'View');
-----
and the method to:
-----
function getArticleMarker($article, $priceid=true,$TSmarker){
$tsconf=$this->conf[$TSmarker.'.']['articles.'];
-----
unfortunately this also doesn't take the listViewTop into account -
maybe you find also a solution for that.
--
Kind regards,
Franz Koch
More information about the TYPO3-project-commerce
mailing list